sqlconverter icon indicating copy to clipboard operation
sqlconverter copied to clipboard

build error

Open eschneider999 opened this issue 7 years ago • 3 comments

1>C:\Users\eschneider\Downloads\sqlconverter-master\Converter\MainForm.cs(15,27,15,37): error CS0234: The type or namespace name 'Management' does not exist in the namespace 'Microsoft.SqlServer' (are you missing an assembly reference?)

eschneider999 avatar Jul 22 '18 18:07 eschneider999

Googling the error message gives some suggestions - what have you tried?

jschultz avatar Jul 24 '18 04:07 jschultz

Hi.

Part of the problem is that Converter.csproj has hard-coded relative paths to assembly references:

      <HintPath>..\..\..\..\..\Program Files (x86)\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.SqlServer.ConnectionInfo.dll</HintPath>
      <HintPath>..\..\..\..\..\Program Files (x86)\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.SqlServer.Management.Sdk.Sfc.dll</HintPath>
      <HintPath>..\..\..\..\..\Program Files (x86)\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.SqlServer.Smo.dll</HintPath>
      <HintPath>..\..\..\..\..\Program Files (x86)\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.SqlServer.SqlEnum.dll</HintPath>

I think it may be better if these were referenced as NuGet packages instead.

Thank you.

icnocop avatar Aug 16 '18 23:08 icnocop

I'm afraid I no longer have the time to maintain this tool. Anyone who wants to take it over is welcome, or just submit a pull request.

jschultz avatar Aug 17 '18 00:08 jschultz