0
Vote

Tracer(CS):Failed to build after converting to VS2008 solution

description

The issue also repro in following samples:
SqlService(VB)
ServerInfo(VB)
BackRest(VB)
DependencyExplorer(VB)
ManageDatabases(VB)
ManageDatabaseUsers(VB)
ManageTables(VB)
ScriptTable(VB)

Environment:

  1. Windows 2K3 ENT ENU.
  2. Installed Katmai DEV 10.00.1049.02.
  3. Installed Sample 80315
  4. Installed Visual Studio 2008 9.0.21022.8 RTM.
     

Steps:

  1. Located to "...\Engine\Programmability\SMO\Tracer\CS\".
  2. Open Tracer.sln in VS2008, and convert to VS2008 solution by default step.
  3. Build it.
     

Expectation:

Build without error
 

Actual:

There is error. Details are as follows:
Error1'Microsoft.Samples.SqlServer.Properties.Settings' does not contain a definition for 'Value'C:\Program Files\Microsoft SQL Server\100\Samples\Engine\Programmability\SMO\Tracer\CS\Tracer\Tracer.cs7859Tracer

comments

wrote Apr 9, 2009 at 3:02 AM

Programmability\SMO\Tracer\CS\Tracer\Tracer.csModify Line==>78                traceConfigFileName = Properties.Settings.Value.TraceConfigFile;                traceConfigFileName = Properties.Settings.Default.TraceConfigFile;
Programmability\SMO\Tracer\CS\Tracer\Properties\Settings.csModify Line==>21        public static Settings Value {        public static Settings Default {

wrote Apr 9, 2009 at 6:55 AM

Sample : Tracer(CS)Programmability\SMO\Tracer\CS\Tracer\Tracer.csModify Line==>78traceConfigFileName = Properties.Settings.Value.TraceConfigFile;traceConfigFileName = Properties.Settings.Default.TraceConfigFile;Programmability\SMO\Tracer\CS\Tracer\Properties\Settings.csModify Line==>21public static Settings Value {public static Settings Default {
Sample : SqlService(VB)Programmability\SMO\SqlService\VB\SqlService\My Project\MyApplication.myappModify Line==>4  <MainForm>SqlService.SqlService.SqlService</MainForm>  <MainForm>SqlService</MainForm>
Sample : ServerInfo(VB)Programmability\SMO\ServerInfo\VB\ServerInfo\My Project\MyApplication.myappModify Line==>4<MainForm>Microsoft.Samples.SqlServer.Microsoft.Samples.SqlServer.ServerInfo</MainForm><MainForm>ServerInfo</MainForm>
Sample : BackRest(VB)Programmability\SMO\BackRest\VB\BackRest\My Project\MyApplication.myappModify Line==>4<MainForm>Microsoft.Samples.SqlServer.Microsoft.Samples.SqlServer.BackupRestore</MainForm><MainForm>BackupRestore</MainForm>
DependencyExplorer(VB)Programmability\SMO\DependencyExplorer\VB\DependencyExplorer\My Project\MyApplication.myappModify Line==>4<MainForm>Microsoft.Samples.SqlServer.Microsoft.Samples.SqlServer.MainForm</MainForm><MainForm>MainForm</MainForm>
ManageDatabases(VB)Programmability\SMO\ManageDatabases\VB\ManageDatabases\My Project\MyApplication.myappModify Line==>4<MainForm>Microsoft.Samples.SqlServer.Microsoft.Samples.SqlServer.ManageDatabases</MainForm><MainForm>ManageDatabases</MainForm>
ManageDatabaseUsers(VB)Programmability\SMO\ManageDatabaseUsers\VB\ManageDatabaseUsers\My Project\MyApplication.myappModify Line==>4<MainForm>Microsoft.Samples.SqlServer.Microsoft.Samples.SqlServer.Microsoft.Samples.SqlServer.ManageDatabaseUsers</MainForm><MainForm>ManageDatabaseUsers</MainForm>
ManageTables(VB)Programmability\SMO\ManageTables\VB\ManageTables\My Project\MyApplication.myappModify Line==>4<MainForm>Microsoft.Samples.SqlServer.Microsoft.Samples.SqlServer.Microsoft.Samples.SqlServer.ManageTables</MainForm><MainForm>ManageTables</MainForm>
ScriptTable(VB)Programmability\SMO\ScriptTable\VB\ScriptTable\My Project\MyApplication.myappModify Line==>4<MainForm>Microsoft.Samples.SqlServer.ScriptTable</MainForm><MainForm>ScriptTable</MainForm>

wrote Nov 24, 2009 at 4:59 AM

Repro on sample DependencyExplorer(VB).
Failed to build with the error after converting to VS2008 solution:
Error 1 'MainForm' is not a member of 'SqlServer'. D:\Program Files\Microsoft SQL Server\100\Samples\Engine\Programmability\SMO\DependencyExplorer\VB\DependencyExplorer\My Project\MyApplication.Designer.vb 35 27 DependencyExplorer

wrote Feb 14, 2013 at 2:50 AM