我有许多.NET Core项目的解决方案。我做的NuGet更新所有的项目,现在当我尝试建立我收到以下错误(有些项目 - 不是全部):无法找到框架的运行时目标.NETCoreApp = v1兼容某些项目的目标运行时间
Can not find runtime target for framework '.NETCoreApp,Version=v1.0' compatible with one of the target runtimes: 'win10-x64, win81-x64, win8-x64, win7-x64'. Possible causes:
1. The project has not been restored or restore failed - run `dotnet restore`
2. The project does not list one of 'win10-x64, win81-x64, win8-x64, win7-x64' in the 'runtimes' section.
3. You may be trying to publish a library, which is not supported. Use `dotnet pack` to distribute libraries.
什么似乎帮助一个帖子,我发现这里Can not find runtime target for framework .NETCoreApp=v1 compatible with one of the target runtimes
添加以下的项目失败:
"runtimes": {
"win10-x64": { }
}
这似乎解决问题。但我的问题是,为什么这只发生在一些项目上?没有发出错误的项目在其project.json
文件中没有这种运行时定义。
这个运行时定义究竟意味着什么?它如何影响我在Linux或Mac等其他操作系统上运行的能力?
可不可以给该作品是没有一个项目,一个一个例子project.json? – svick