如何为 UAP 修复运行时 osx.10.11-x64,Version=v10.0
How to fix runtime osx.10.11-x64 for UAP,Version=v10.0
我有一个示例应用程序(分支是:https://github.com/cpoDesign/Windows-appsample-trafficapp)
当我运行:
以下命令:
bash-3.2$ dotnet restore
bash-3.2$ dotnet run
我收到以下错误
Can not find runtime target for framework 'UAP,Version=v10.0'
compatible with one of the target runtimes: 'osx.10.11-x64'. Possible
causes:
1. The project has not been restored or restore failed - run dotnet restore
2. The project does not list one of 'osx.10.11-x64' in the 'runtimes' section.
3. You may be trying to publish a library, which is not supported. Use dotnet pack
to distribute libraries.
在此之后我更新了我的项目以提供 osx 描述
{
"dependencies": {
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
},
"frameworks": {
"uap10.0": {}
},
"runtimes": {
"win10-arm": {},
"win10-arm-aot": {},
"win10-x86": {},
"win10-x86-aot": {},
"win10-x64": {},
"win10-x64-aot": {},
"osx.10.11-x64":{}
}
}
提供运行时间后
我再次 运行 我上面的 dot net 命令
而这次我得到了
**bash-3.2$ dotnet restore**
log : Restoring packages for /Users/user/Desktop/code/trafficApp/Windows-appsample-trafficapp/TrafficApp/project.json...
log : Lock file has not changed. Skipping lock file write. Path: /Users/user/Desktop/code/trafficApp/Windows-appsample-trafficapp/TrafficAp
p/project.lock.json
log : /Users/user/Desktop/code/trafficApp/Windows-appsample-trafficapp/TrafficApp/project.json
log : Restore completed in 647ms.
**bash-3.2$ dotnet run**
Can not find runtime target for framework 'UAP,Version=v10.0' compatible with one of the target runtimes: 'osx.10.11-x64'. Possible causes:
1. The project has not been restored or restore failed - run `dotnet restore`
2. The project does not list one of 'osx.10.11-x64' in the 'runtimes' section.
3. You may be trying to publish a library, which is not supported. Use `dotnet pack` to distribute libraries.
我需要更新什么?
通用应用程序平台/通用 Windows 平台是 Windows 特定的。据我所知,无法在 OSX.
上 运行 一个 UAP/UWP 应用程序
我有一个示例应用程序(分支是:https://github.com/cpoDesign/Windows-appsample-trafficapp)
当我运行: 以下命令:
bash-3.2$ dotnet restore
bash-3.2$ dotnet run
我收到以下错误
Can not find runtime target for framework 'UAP,Version=v10.0' compatible with one of the target runtimes: 'osx.10.11-x64'. Possible causes: 1. The project has not been restored or restore failed - run
dotnet restore
2. The project does not list one of 'osx.10.11-x64' in the 'runtimes' section. 3. You may be trying to publish a library, which is not supported. Usedotnet pack
to distribute libraries.
在此之后我更新了我的项目以提供 osx 描述
{
"dependencies": {
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
},
"frameworks": {
"uap10.0": {}
},
"runtimes": {
"win10-arm": {},
"win10-arm-aot": {},
"win10-x86": {},
"win10-x86-aot": {},
"win10-x64": {},
"win10-x64-aot": {},
"osx.10.11-x64":{}
}
}
提供运行时间后 我再次 运行 我上面的 dot net 命令
而这次我得到了
**bash-3.2$ dotnet restore**
log : Restoring packages for /Users/user/Desktop/code/trafficApp/Windows-appsample-trafficapp/TrafficApp/project.json...
log : Lock file has not changed. Skipping lock file write. Path: /Users/user/Desktop/code/trafficApp/Windows-appsample-trafficapp/TrafficAp
p/project.lock.json
log : /Users/user/Desktop/code/trafficApp/Windows-appsample-trafficapp/TrafficApp/project.json
log : Restore completed in 647ms.
**bash-3.2$ dotnet run**
Can not find runtime target for framework 'UAP,Version=v10.0' compatible with one of the target runtimes: 'osx.10.11-x64'. Possible causes:
1. The project has not been restored or restore failed - run `dotnet restore`
2. The project does not list one of 'osx.10.11-x64' in the 'runtimes' section.
3. You may be trying to publish a library, which is not supported. Use `dotnet pack` to distribute libraries.
我需要更新什么?
通用应用程序平台/通用 Windows 平台是 Windows 特定的。据我所知,无法在 OSX.
上 运行 一个 UAP/UWP 应用程序