Referenced DLL not being copied to referencing project

前端 未结 3 402
灰色年华
灰色年华 2020-12-29 15:45

This question might have been asked multiple times and maybe I\'m just bad at using the search functions here aswell as google but I\'ve not found an answer to this question

3条回答
  •  礼貌的吻别
    2020-12-29 16:37

    Now I figured i'd add the assembly to project X to make sure that this reference is copied over to other projects using project X. This didn't happen.... So i tried setting the 'Copy Local' setting to true.

    You are still talking about the Microsoft.SqlServer.Types.dll right?

    I had the same issues some time ago, actually sqlserver types should not be copied and redistributed with your installation. The correct way to "install" it is downloading the sql server runtime (which is included in the sql server management tools, that's why it works for you locally).

    Because it is some time ago, I'm not 100% sure if the following information is correct and will work, but simply try to install the Microsoft® System CLR Types for Microsoft® SQL Server® 2012 only. On this download page expand Install Instructions and scroll down to the CLR Types download...

    Use this link for SQL Server 2008

    Install this on the target server. This will only install the stuff needed to run this types dll...

提交回复
热议问题