'dotnet new' generates project referencing wrong package version
See original GitHub issueSteps to reproduce
- Install the latest build (2330)
- Create a folder
- dotnet new
Expected behavior
Generated project.json should work
Actual behavior
Generated project.json references bogus package version:
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0-rc2-3002330"
}
},
Environment data
dotnet --info
output:
C:\proj\clicon>dotnet --info
.NET Command Line Tools (1.0.0-rc2-002330)
Product Information: Version: 1.0.0-rc2-002330 Commit Sha: 3af38bf0fe
Runtime Environment: OS Name: Windows OS Version: 10.0.10586 OS Platform: Windows RID: win10-x64
Issue Analytics
- State:
- Created 7 years ago
- Comments:15 (8 by maintainers)
Top Results From Across the Web
Net picking wrong referenced assembly version
My new machine has the latest version of the assembly installed, so I thought I'd updated it (lets call the new version v2.0.0.0)....
Read more >Reference changed to wrong version of assembly #3415
During F# project build, an assembly reference could be changed to a wrong version of the same assembly from Reference Assemblies.
Read more >dotnet new --install incorrectly installs unlisted versions #894
I can install an unlisted package into a project by specifying the name. Being unlisted means it won't be included in search results...
Read more >How to resolve .NET reference and NuGet package version ...
Let's say we have 2 assemblies called Lib1 with different versions 1.0 and 1.1, which are referenced by different projects. Let's set CopyLocal ......
Read more >Troubleshoot .NET Framework targeting errors
To resolve the error, make sure that your application targets a .NET version that's compatible with the version that's targeted by the projects...
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
I’ve published the later builds of the Microsoft.NETCore.App meta-package to the dotnet-core feed, and setup a build definition that should publish the latest builds as they complete. @gregg-miskelly please try again.
I’ve almost got our publishing automated and it is currently pushing this to dotnet-cli feed but I will actually push it to the dotnet-core feed instead (or perhaps both).