Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8857117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:30:53+00:00 2026-06-14T14:30:53+00:00

I am tying to do msbuild (continuous integration) for a SQL CLR project in

  • 0

I am tying to do msbuild (continuous integration) for a SQL CLR project in VS 2010/SQL Server 2005. The project builds correctly in VS, but I can’t get it to build in msbuild since it needs a 3rd party external reference.

The typical way to get around this is to add a Library folder and point the reference to that library folder. How do I do that in a SQL CLR project?

The build errors I get are:

[19:38:42]CorrSqlServerCompo\PowerStatRegression.csproj.teamcity: Build target: Build
[19:38:42][CorrSqlServerCompo\PowerStatRegression.csproj.teamcity] CoreCompile
[19:38:42][CoreCompile] Csc
[19:38:42][Csc] matrix\MatrixHandler.cs(5, 7): error CS0246: The type or namespace name 'Extreme' could not be found (are you missing a using directive or an assembly reference?)
[19:38:42][Csc] matrix\MatrixHandler.cs(6, 7): error CS0246: The type or namespace name 'Extreme' could not be found (are you missing a using directive or an assembly reference?)
[19:38:42][Csc] matrix\MatrixHandler.cs(216, 51): error CS0246: The type or namespace name 'GeneralMatrix' could not be found (are you missing a using directive or an assembly reference?)
[19:38:42][CorrSqlServerCompo\PowerStatRegression.csproj.teamcity] Project CorrSqlServerCompo\PowerStatRegression.csproj.teamcity failed.

The itemgroup in the build project file is:

<ItemGroup>
<Reference Include="Extreme.Numerics.Net20, Version=3.6.10055.0, Culture=neutral, PublicKeyToken=9e513770f58567b2, processorArchitecture=MSIL">
  <SubType>SQLCLR</SubType>
  <Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.XML" />

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:30:55+00:00Added an answer on June 14, 2026 at 2:30 pm

    You should be able to add assembly references to your SQL CLR project using the Add Reference feature. Then set the Reference Properties – Copy Local to true.
    enter image description here

    but… if that doesn’t work the issue might be with what is installed in your local GAC vs. what is installed in the GAC where you are running your CI build because of the way MSBuild resolves assembly references.

    Chris Mann (MSFT) says more about GAC refs here:

    … under the covers they all use msbuild’s ResolveAssemblyReference task. If a dependency is in the gac, no matter where we resolve it from, we will set copy local to false. This is part of a heuristic we apply to try and determine if the assembly should be copy local or not. We are assuming that because it was installed in the gac that it will also be in the gac of any target machines and therefore copy local is not required.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build RIA-enabled Silverlight project on the continuous integration server. There is
I'm trying to get MSBuild working on a project that has just been moved
I'm trying to get MSBuild 2010 to publish a web app to a specific
As part of our Continuous Integration builds, I'd like the build to fail if
I'm trying to run WatiN tests through continuous build on TFS, but I can't
I've been trying to get the MSBuild Extensions Pack GAC utility working but keep
I'm attempting to use MSBuild to figure out whether a SQL server instance has
I am trying to get my continuous integration to create build the smart device
I am trying to compile a Delpho 2010 project using the msbuild tool. Unfortunately
I am trying to use MSBuild release mode, but it always defaults to debug.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.