Build errors when adding SQL Server 2025 (v17) support

Abhishek Modi (amodi) 20 Reputation points
2026-01-12T07:43:28.86+00:00

Hi Team,

I am updating a project to add support for SQL Server 2025 (V17.x), but I am encountering the following build errors:

  • error CS0234: The type or namespace name 'Smo' does not exist in the namespace 'Microsoft.SqlServer.Management' (are you missing an assembly reference?)
  • error CS0012: The type 'Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecuteOnProxy140' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.SqlServer.DTSRuntimeWrap, Version=17.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'.

Could you provide guidance?

Thanks,

Abhishek

SQL Server Integration Services
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2026-01-12T07:43:41.34+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To resolve the build errors you're encountering while adding support for SQL Server 2025 (V17.x), you should consider the following steps:

    1. Add Missing References: The errors indicate that certain assemblies are not referenced in your project. Specifically, you need to add references to:
      • Microsoft.SqlServer.Management.Smo for the Smo namespace.
      • Microsoft.SqlServer.DTSRuntimeWrap for the IDTSExecuteOnProxy140 type.
      Ensure that you have the correct version of these assemblies (Version=17.0.0.0) referenced in your project. You can do this by checking your project's references and adding them if they are missing.
    2. Update Project SDK: If you are using features that were recently added in SQL Server 2025, make sure your project SDK version is updated accordingly. This may resolve compatibility issues with the namespaces and types.
    3. Rebuild the Project: After adding the necessary references, perform a clean build of your project to ensure that all changes take effect. You can delete the /bin and /obj folders before rebuilding to clear any cached data.
    4. Check for Additional Dependencies: If you are using any specific features or components from SQL Server Integration Services (SSIS), ensure that all related dependencies are also included in your project.

    By following these steps, you should be able to resolve the build errors and successfully add support for SQL Server 2025 in your project.


    References:

    0 comments No comments

  2. Akhil Gajavelly 1,125 Reputation points Microsoft External Staff Moderator
    2026-01-12T08:54:37.01+00:00

    Hi @Abhishek Modi (amodi) ,

    For SQL Server 2025, SMO and SSIS v17 assemblies are NOT available via NuGet yet.

    What actually fixes the build

    1. Install SQL Server 2025 client tools / SSMS (v17) on the build machine
    2. Manually add references from:
    3. C:\Program Files\Microsoft SQL Server\170\SDK\Assemblies\
      • Microsoft.SqlServer.Management.Smo.dll
        • Microsoft.SqlServer.DTSRuntimeWrap.dll
        1. Set Copy Local = False
        2. Clean (bin/obj) and rebuild

    If this still fails. You cannot build without SQL tools installed. Until Microsoft ships SMO/DTS v17 NuGet packages, stay on v16 (SQL Server 2022).

    This is a tooling limitation, not a code issue.

    Thanks,
    Akhil.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.