Closed WilliamWsyHK closed 8 years ago
@glennc do you know if there's a branch that works with RC2?
I'm hitting the same issue:
Errors in C:\Users\Patrick\Source\Repos\MusicStore\src\MusicStore\project.json
Package Microsoft.DotNet.ProjectModel 1.0.0-rc3-002886 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.
0). Package Microsoft.DotNet.ProjectModel 1.0.0-rc3-002886 supports:
- net451 (.NETFramework,Version=v4.5.1)
- netstandard1.6 (.NETStandard,Version=v1.6)
One or more packages are incompatible with .NETCoreApp,Version=v1.0.
Package Microsoft.AspNetCore.Mvc 1.0.0-rc3-21136 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Pa
ckage Microsoft.AspNetCore.Mvc 1.0.0-rc3-21136 supports:
- net451 (.NETFramework,Version=v4.5.1)
- netstandard1.6 (.NETStandard,Version=v1.6)
Package Microsoft.AspNetCore.Mvc.TagHelpers 1.0.0-rc3-21136 is not compatible with netcoreapp1.0 (.NETCoreApp,Versio
n=v1.0). Package Microsoft.AspNetCore.Mvc.TagHelpers 1.0.0-rc3-21136 supports:
- net451 (.NETFramework,Version=v4.5.1)
- netstandard1.6 (.NETStandard,Version=v1.6)
One or more packages are incompatible with .NETCoreApp,Version=v1.0.
dotnet --version
shows:
1.0.0-preview1-002702
This worked for me last week:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<!--<add key="AspNetVNext" value="https://www.myget.org/f/aspnetmaster/api/v3/index.json" />-->
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetvolatiledev/api/v3/index.json" />
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
FROM dotnet
COPY NuGet.config /app/Nuget.config
COPY src/MusicStore/project.json /app/src/MusicStore/project.json
WORKDIR /app
RUN dotnet restore src\MusicStore
COPY . /app
EXPOSE 5004
ENTRYPOINT dotnet run -p src\MusicStore
{
"authors": [
"Microsoft"
],
"description": "Music store application on ASP.NET 5",
"version": "1.0.0-*",
"buildOptions": {
"compile": {
"include": [
"../../shared/**/*.cs"
]
},
"copyToOutput": {
"include": [
"Areas",
"Views",
"wwwroot",
"config.json",
"web.config"
]
},
"define": [
"DEMO",
"TESTING"
],
"emitEntryPoint": true,
"preserveCompilationContext": true,
"warningsAsErrors": true
},
"publishOptions": {
"include": [
"Areas",
"Views",
"wwwroot",
"config.json",
"web.config"
]
},
"dependencies": {
"Microsoft.AspNetCore.Authentication.Cookies": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Authentication.Facebook": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Authentication.Google": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Authentication.MicrosoftAccount": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Authentication.OpenIdConnect": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Authentication.Twitter": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Diagnostics": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Mvc": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Mvc.TagHelpers": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Server.WebListener": "0.1.0-rc2-final",
"Microsoft.AspNetCore.Session": "1.0.0-rc2-final",
"Microsoft.AspNetCore.StaticFiles": "1.0.0-rc2-final",
"Microsoft.EntityFrameworkCore.InMemory": "1.0.0-rc2-final",
"Microsoft.EntityFrameworkCore.SqlServer": "1.0.0-rc2-final",
"Microsoft.Extensions.Configuration.CommandLine": "1.0.0-rc2-final",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-rc2-final",
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc2-final",
"Microsoft.Extensions.Logging.Console": "1.0.0-rc2-final",
"Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0-rc2-final",
"Microsoft.NETCore.Platforms": "1.0.1-rc2-24027"
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.0-rc2-3002702",
"type": "platform"
}
},
"imports": [
"dnxcore50",
"portable-net451+win8"
]
}
},
"tools": {
"Microsoft.AspNetCore.Server.IISIntegration.Tools": {
"version": "1.0.0-*",
"imports": "portable-net45+wp80+win8+wpa81+dnxcore50"
}
},
"scripts": {
"postpublish": "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%"
}
}
dotnet image dockerfile
FROM windowsservercore
RUN @powershell -NoProfile \
-Command \
$ErrorActionPreference = 'Stop'; \
(New-Object System.Net.WebClient).DownloadFile('http://download.microsoft.com/download/2/1/0/2107669A-0DF9-4A91-A275-74735D433045/dotnet-dev-win-x64.1.0.0-preview1-002702.zip', 'dotnet-win-x64.zip') ; \
Expand-Archive dotnet-win-x64.zip -DestinationPath c:\\dotnet ; \
Remove-Item -Force dotnet-win-x64.zip
RUN setx /M PATH "C:\dotnet;%PATH%"
For RC2, use the release
(rc2) branch or the tag 1.0.0-rc2
thanks, release branch works
Great! I also changed to release
branch and no more errors prompt. :kissing:
All, i am facing the same problem in my project. Can someone suggest me what are the changes that i need to make> what is the meaning of changing to release branch ? is it a change in the nuget.config file or in the project.json file? Please advise.
git checkout release
From both Visual Studio and
dotnet run
Edit: for more info to other people, this message is generated from
dev
branch.