我有一个第三方DLL,我需要在解决方案中的多个c#项目中引用。在多个项目中引用常见的二进制文件
目前引用如下。
<Reference Include="Contoso.App, Version=4.0.5.0, Culture=neutral, PublicKeyToken=xxxxxxxx, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\ThirdParty\Contoso\4.0.5.0\Contoso.App.dll</HintPath>
</Reference>
我有我的解决方案大约40个项目,其中引用Contoso.App.Dll
每当DLL版本改变一个新的文件夹,如下所示
..\ThirdParty\Contoso\5.0\
我必须去创建并按照以下方式更新我所有的40个项目。
<Reference Include="Contoso.App, Culture=neutral, PublicKeyToken=xxxxxxxx, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\ThirdParty\Contoso\5.0\Contoso.App.dll</HintPath>
</Reference>
有没有更好的方法来管理DLL的版本更改?
我可以在解决方案中创建单个变量并在所有项目中重复使用它吗?
你在所有解决方案中的项目中使用它或者是它只是一个子集? – Scheme
其实并非所有的项目。我有大约70个解决方案项目。其中40个引用了DLL。 –
你为什么不使用'\第三方\ Contoso的\ CURRENTVERSION \ Contoso.App.dll'的路径和DLL版本5.0复制到其中。 – TriV