netcoreapp1.0 RTM does not build
See original GitHub issueI have VS2015 with Update 3 and the RTM release of .NET Core and created a web app using the built in VS project template. The only change I made was to remove the prepublish script from project.json.
I have a build configuration, using the a machine from the Hosted pool, that has three command line tasks:
- dotnet restore
- dotnet build
- dotnet publish
It fails on the restore task with the following error:
2016-06-29T10:20:24.2675925Z log : Restore failed in 139540ms.
2016-06-29T10:20:24.2775930Z Errors in C:\a\1\s\WebApplication1\src\WebApplication1\project.json
2016-06-29T10:20:24.2785928Z Package Microsoft.DotNet.ProjectModel.Loader 1.0.0-preview2-003121 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.DotNet.ProjectModel.Loader 1.0.0-preview2-003121 supports: netstandard1.6 (.NETStandard,Version=v1.6)
2016-06-29T10:20:24.2785928Z Package Microsoft.DotNet.Cli.Utils 1.0.0-preview2-003121 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.DotNet.Cli.Utils 1.0.0-preview2-003121 supports:
2016-06-29T10:20:24.2796163Z - net451 (.NETFramework,Version=v4.5.1)
2016-06-29T10:20:24.2796163Z - netstandard1.6 (.NETStandard,Version=v1.6)
2016-06-29T10:20:24.2805926Z One or more packages are incompatible with .NETCoreApp,Version=v1.0.
2016-06-29T10:20:24.2805926Z Package Microsoft.DotNet.ProjectModel 1.0.0-rc3-003121 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.DotNet.ProjectModel 1.0.0-rc3-003121 supports:
2016-06-29T10:20:24.2815928Z - net451 (.NETFramework,Version=v4.5.1)
2016-06-29T10:20:24.2815928Z - netstandard1.6 (.NETStandard,Version=v1.6)
2016-06-29T10:20:24.2825922Z One or more packages are incompatible with .NETCoreApp,Version=v1.0.
2016-06-29T10:20:24.2825922Z Package Microsoft.AspNetCore.Mvc 1.0.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.AspNetCore.Mvc 1.0.0 supports:
2016-06-29T10:20:24.2825922Z - net451 (.NETFramework,Version=v4.5.1)
2016-06-29T10:20:24.2835924Z - netstandard1.6 (.NETStandard,Version=v1.6)
2016-06-29T10:20:24.2835924Z Package Microsoft.DotNet.ProjectModel.Loader 1.0.0-preview2-003121 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.DotNet.ProjectModel.Loader 1.0.0-preview2-003121 supports: netstandard1.6 (.NETStandard,Version=v1.6)
2016-06-29T10:20:24.2845920Z Package Microsoft.DotNet.Cli.Utils 1.0.0-preview2-003121 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.DotNet.Cli.Utils 1.0.0-preview2-003121 supports:
2016-06-29T10:20:24.2845920Z - net451 (.NETFramework,Version=v4.5.1)
2016-06-29T10:20:24.2855928Z - netstandard1.6 (.NETStandard,Version=v1.6)
2016-06-29T10:20:24.2855928Z One or more packages are incompatible with .NETCoreApp,Version=v1.0.
2016-06-29T10:20:24.2865919Z NuGet Config files used:
2016-06-29T10:20:24.2865919Z C:\Users\buildguest\AppData\Roaming\NuGet\NuGet.Config
2016-06-29T10:20:24.2875923Z C:\ProgramData\nuget\Config\Microsoft.VisualStudio.Offline.config
2016-06-29T10:20:24.2875923Z Feeds used:
2016-06-29T10:20:24.2875923Z https://api.nuget.org/v3/index.json
2016-06-29T10:20:24.2885929Z C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\
I cannot recreate this issue locally. Do the machines in the Hosted app pool need to be upgraded too?
Cheers, Andy
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
building netcoreapp1.0 RTM with new agent · Issue #365 · microsoft ...
NET Core and created a web app using the built in VS project template. The only change I made was to remove the...
Read more >Unable to restore a ASP.NET Core 1.0 RTM solution
first make sure preview2 is in your computer, on windows it should be under C:\Program Files\dotnet\sdk if you have 1.0.0-preview2-003121 in ...
Read more >NuGet 4.0 RC Release Notes - Microsoft Learn
Release notes for NuGet 4.0 RC including known issues, bug fixes, added features, and DCRs.
Read more >Part 2 - Caveats of project.json to MSBuild conversion
This upgrade is not only a matter changing JSON vs XML: it's about learning and using a fundamentally different technology, MSBuild.
Read more >Full Stack – ASP.NET Core, JavaScript, and DevOps
NET 4 (and previous versions), there was no concept of an Environment. ... HealthChecks package targets netcoreapp1.0 , but I suspect this will...
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
Had a similar issue. I fixed it by updating the sdk version in my solution’s global.json to
1.0.0-preview2-003121
This line
2016-06-29T10:47:10.1671732Z .NET Command Line Tools (1.0.0-preview1-002702)
from yourdotnet info
leads me to think yours is a similar issue. Are you sure you updated the CLI tools?@andradf there is no
global.json
. Plus, how do I update the CLI tools? This is a hosted agent.