Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# NuGet:如何在NuGet pack期间指定许可证URL?_C#_.net_Msbuild_Nuget_.net Assembly - Fatal编程技术网

C# NuGet:如何在NuGet pack期间指定许可证URL?

C# NuGet:如何在NuGet pack期间指定许可证URL?,c#,.net,msbuild,nuget,.net-assembly,C#,.net,Msbuild,Nuget,.net Assembly,我有一个.csproj文件要推送到。目前,我正在通过nuget-pack和nuget-push从命令行执行此操作。以下是项目的AssemblyInfo: using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("ObservableVector")] [assembly: AssemblyDescr

我有一个.csproj文件要推送到。目前,我正在通过
nuget-pack
nuget-push
从命令行执行此操作。以下是项目的
AssemblyInfo

using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("ObservableVector")]
[assembly: AssemblyDescription(@"Observable Vector makes it easy to use the IObservableVector<T> interface in your Windows app.

Find us on GitHub at https://github.com/jamesqo/observable-vector")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("James Ko")]
[assembly: AssemblyProduct("ObservableVector")]
[assembly: AssemblyCopyright("Copyright ©  2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

[assembly: AssemblyVersion("1.3.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: ComVisible(false)]

不幸的是,它似乎不起作用,因为当我解压
nupkg
并打开
nuspec
时,没有提到项目URL。

嗯,显然在当前版本的NuGet中不可能:

我必须创建一个
nuspec
文件

nuget pack Foo.csproj -Prop Configuration=Release;ProjectUrl=http://the.url/