dotnet pack does not produce package on net core 2.0.0 web project
See original GitHub issueSteps to reproduce
Install net core 2.0.0 sdk Create a basic Web project with net461 target framework and referencing AspNetCore 2.0.0 Execute the dotnet pack myproject.csproj
Expected behavior
A nupkg is generated
Actual behavior
nothing is produced. Before I migrate to 2.0.0, packages were normally produced locally and with TFS builds
Environment data
dotnet --info
output:
Product Information:
Version: 2.0.0
Commit SHA-1 hash: cdcd1928c9
Runtime Environment: OS Name: Windows OS Version: 6.1.7601 OS Platform: Windows RID: win7-x64 Base Path: C:\Program Files\dotnet\sdk\2.0.0\
Microsoft .NET Core Shared Framework Host
Version : 2.0.0 Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d
Issue Analytics
- State:
- Created 6 years ago
- Comments:18 (8 by maintainers)
Top Results From Across the Web
dotnet pack does not produce package on net core 2.0.0 ...
Steps to reproduce. Install net core 2.0.0 sdk. Create a basic Web project with net461 target framework and referencing AspNetCore 2.0.0
Read more >asp.net - DotNet Pack Not Doing Anything
I am trying to create a nuget package for my web application but it is not producing any .nupkg outputs. I am using...
Read more >dotnet pack command - .NET CLI
The dotnet pack command builds the project and creates NuGet packages. The result of this command is a NuGet package (that is, a...
Read more >Create a NuGet package with the dotnet CLI
Read a detailed guide about the process of designing and creating a NuGet package, including key decision points like files and versioning.
Read more >DotNetCoreCLI@2 - .NET Core v2 task
Build, test, package, or publish a dotnet application, or run a custom dotnet command.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Web projects are now marked as not packable by default. You can change that by adding the following property to the csproj:
I completely agree that pack shouldn’t silently do nothing when IsPackable=false. I suggest logging an issue on https://github.com/nuget/home. cc @rohit21agrawal