是否可以更改 nuget 包的生成位置? .Net 核心 5 Visual Studio 19
Is it possible to change the generation location of a nuget package? .Net Core 5 Visual Studio 19
我有一个生成本地 nuget 包的应用程序,我必须在另一个应用程序中安装这个 nuget 包。
所以我想将生成 nuget 包的文件夹从 application\bin\debug 更改为 c:\Nugets。可能吗?
您可以在csproj文件中指定PackageOutputPath
属性。例如:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<PackageOutputPath>c:\Nugets</PackageOutputPath>
</PropertyGroup>
</Project>
至少,这使得 dotnet pack
将包裹放在 c:\Nugets
- 我希望它在 Visual Studio 中也能这样做。
我有一个生成本地 nuget 包的应用程序,我必须在另一个应用程序中安装这个 nuget 包。
所以我想将生成 nuget 包的文件夹从 application\bin\debug 更改为 c:\Nugets。可能吗?
您可以在csproj文件中指定PackageOutputPath
属性。例如:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<PackageOutputPath>c:\Nugets</PackageOutputPath>
</PropertyGroup>
</Project>
至少,这使得 dotnet pack
将包裹放在 c:\Nugets
- 我希望它在 Visual Studio 中也能这样做。