我无法使用命令行创建新的aspnetcore 2项目。
以下是步骤和我收到的错误消息。有没有人像我得到的那样有同样的问题?
解决了什么问题。提前谢谢。
dotnet new mvc
D:\ Sample \ tester \ tester.csproj:错误NU1202:包 Microsoft.ApplicationInsights 2.4.0与。不兼容 netcoreapp2.0(.NETCoreApp,Version = v2.0)。 软件包Microsoft.ApplicationInsights 2.4.0支持:
D:\ Sample \ tester \ tester.csproj:错误NU1202: - net40 (.NETFramework,Version = v4.0)D:\ Sample \ tester \ tester.csproj:error NU1202: - net45(.NETFramework,Version = v4.5) D:\ Sample \ tester \ tester.csproj:错误NU1202: - net46 (.NETFramework,Version = v4.6)D:\ Sample \ tester \ tester.csproj:error NU1202: - netstandard1.3(.NETStandard,Version = v1.3)
dotnet run
错误NU1202:打包Microsoft.ApplicationInsights.AspNetCore 2.1.1 与netcoreapp2.0(.NETCoreApp,Version = v2.0)不兼容。 包Microsoft.ApplicationInsights.AspNetCore 2.1.1支持:
D:\ Sample \ tester \ tester.csproj:错误NU1202: - net451 (.NETFramework,版本= V4.5.1) D:\ Sample \ tester \ tester.csproj: 错误NU1202: - netstandard1.6(.NETStandard,Version = v1.6) D:\ Sample \ tester \ tester.csproj:错误NU1202:包 Microsoft.ApplicationInsights 2.4.0与。不兼容 netcoreapp2.0(.NETCoreApp,Version = v2.0)。包 Microsoft.ApplicationInsights 2.4.0支持:
D:\ Sample \ tester \ tester.csproj:错误NU1202: - net40 (.NETFramework,Version = v4.0)\ r D:\ Sample \ tester \ tester.csproj:error NU1202: - net45(.NETFramework,Version = v4.5)
D:\ Sample \ tester \ tester.csproj:错误NU1202: - net46 (.NETFramework,版本= V4.6) D:\ Sample \ tester \ tester.csproj:错误 NU1202: - netstandard1.3(.NETStandard,Version = v1.3) D:\ Sample \ tester \ tester.csproj:错误NU1202:包 Microsoft.ApplicationInsights.DependencyCollector 2.4.1不是 与netcoreapp2.0兼容(.NETCoreApp,Version = v2.0)。包 Microsoft.ApplicationInsights.DependencyCollector 2.4.1支持:
D:\ Sample \ tester \ tester.csproj:错误NU1202: - net40 (.NETFramework,版本= 4.0版) D:\ Sample \ tester \ tester.csproj:错误 NU1202: - net45(.NETFramework,Version = v4.5)
D:\ Sample \ tester \ tester.csproj:错误NU1202: - netstandard1.6 (.NETStandard,版本= 1.6版)
注意:
我正在使用: - Visual Studio社区15.3.5。 - SDK netcore 2.0.0