The IDE does not take in consideration the new project constant value in the Visual Studio project

Issue:  The macro inside the cs files remains with old value instead of taking in consideration the new value set in the ImportProject.

For example, in the dp.client.csproj file there is this import

 <Import Project="..\..\common\winnt\build\common.props" />

The common.props does define constant

 <BUILDFLAGVER Condition="'$(BUILD_TSM_VERSION)'=='814'">BUILD_TSM_V814</BUILDFLAGVER>

Inside the SqlServerManager.cs

 switch (spiu)
 {
#if (BUILD_TSM_V714 || BUILD_TSM_V713 || BUILD_TSM_V712)
 case SqlProductInUse.SQL2008:
 case SqlProductInUse.SQL2008Plus:
 case SqlProductInUse.SQL2008SP1:
 case SqlProductInUse.SQL2008SP1Plus:
 case SqlProductInUse.SQL2008SP2:
 case SqlProductInUse.SQL2008SP2Plus:
 case SqlProductInUse.SQL2008SP3:
 case SqlProductInUse.SQL2008SP3Plus:
 case SqlProductInUse.SQL2008R2:
 case SqlProductInUse.SQL2008R2Plus:
 case SqlProductInUse.SQL2008R2SP1:
 case SqlProductInUse.SQL2008R2SP1Plus:
 case SqlProductInUse.SQL2008R2SP2:
 case SqlProductInUse.SQL2008R2SP2Plus:
 case SqlProductInUse.SQL2012:
 case SqlProductInUse.SQL2012Plus:
 case SqlProductInUse.SQL2012SP1:
 case SqlProductInUse.SQL2012SP1Plus:
 case SqlProductInUse.SQL2014:
 case SqlProductInUse.SQL2014Plus:
 supportedVersion = true;
 break;
#elif (BUILD_TSM_V716)
 case SqlProductInUse.SQL2008:
 case SqlProductInUse.SQL2008Plus:
 case SqlProductInUse.SQL2008SP1:
 case SqlProductInUse.SQL2008SP1Plus:
 case SqlProductInUse.SQL2008SP2:
 case SqlProductInUse.SQL2008SP2Plus:
 case SqlProductInUse.SQL2008SP3:
 case SqlProductInUse.SQL2008SP3Plus:
 case SqlProductInUse.SQL2008R2:
 case SqlProductInUse.SQL2008R2Plus:
 case SqlProductInUse.SQL2008R2SP1:
 case SqlProductInUse.SQL2008R2SP1Plus:
 case SqlProductInUse.SQL2008R2SP2:
 case SqlProductInUse.SQL2008R2SP2Plus:
 case SqlProductInUse.SQL2012:
 case SqlProductInUse.SQL2012Plus:
 case SqlProductInUse.SQL2012SP1:
 case SqlProductInUse.SQL2012SP1Plus:
 case SqlProductInUse.SQL2014:
 case SqlProductInUse.SQL2014Plus:
 case SqlProductInUse.SQL2016:
 case SqlProductInUse.SQL2016Plus:
 supportedVersion = true;
 break;
#elif (BUILD_TSM_V810 || BUILD_TSM_V812)
 case SqlProductInUse.SQL2014:
 case SqlProductInUse.SQL2014Plus:
 case SqlProductInUse.SQL2016:
 case SqlProductInUse.SQL2016Plus:
 supportedVersion = true;
 break;
#else
 case SqlProductInUse.SQL2014:
 case SqlProductInUse.SQL2014Plus:
 case SqlProductInUse.SQL2016:
 case SqlProductInUse.SQL2016Plus:
 case SqlProductInUse.SQL2017:
 case SqlProductInUse.SQL2017Plus:
 supportedVersion = true;
 break;
#endif
 case SqlProductInUse.Unknown:
 default:
 supportedVersion = false;
 break;
 }

Solution:  Rename / drop the fm.ux.v11.suo file. The solution seems to recreate the fm.ux.sdf file.

Advertisements
This entry was posted in Uncategorized and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s