我已经看到NuGet.exe在安装软件包时包含一个ExcludeVersion标志。我们有一个已经包含了大量参考文献的解决方案。例如:
<Reference Include="Microsoft.SqlServer.Smo, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
<Private>True</Private>
<HintPath>..\packages\Microsoft.SqlServer.Scripting.11.0.2100.61\lib\Microsoft.SqlServer.Smo.dll</HintPath>
</Reference>是否有一种简单的方法来更新所有这些现有的引用,使其不包括文件夹路径中的版本号(上面的11.0.2100.61)?最初,这些引用都是使用Visual中的包管理器添加的,但我没有看到任何指定不包括版本号的方法。
发布于 2013-09-03 19:30:10
简短的回答。
不,没有。
参见:https://nuget.codeplex.com/workitem/1522
我认为你必须:
是啊,太臭了。
我的nuget.config文件看起来是这样的,FYI。
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="repositoryPath" value="..\MyPackages" />
</config>
</configuration>https://stackoverflow.com/questions/16787563
复制相似问题