我的项目运行在dot net core 2.0上,角度为4.2.我将它更新为最新的角度(5.0.0).从那时起,在startup.cs Configure方法中抛出异常.
app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions
{
HotModuleReplacement = true
});
Run Code Online (Sandbox Code Playgroud)
这里因错误而失败
Error: Version of @angular/compiler-cli needs to be 2.3.1 or greater.
Current version is "5.0.0".
at Object.<anonymous> (D:\Personal\Code\PettlyUi\PettlyUi\node_modules\@ngtools\webpack\src\index.js:27:11)
at Module._compile (module.js:641:30)
at Object.Module._extensions..js (module.js:652:10)
Run Code Online (Sandbox Code Playgroud)
当我从命令行使用webpack时也会抛出相同的错误.
我也尝试过同样的新项目,但一直都失败了.这是某种错误还是我没有正确更新.
用于升级的命令:
npm install @angular/common@latest @angular/compiler@latest
@angular/compiler-cli@latest @angular/core@latest @angular/forms@latest
@angular/http@latest @angular/platform-browser@latest @angular/platform-
browser-dynamic@latest @angular/platform-server@latest
@angular/router@latest @angular/animations@latest typescript@latest
Run Code Online (Sandbox Code Playgroud) 我从 dotnet maui 开始,目前文档非常差。我有一个针对旧版 Android API 级别的现有项目,并为此准备了环境。当我尝试构建它时,出现错误,
error XA5207: Could not find android.jar for API level 31. This means the Android SDK platform for API level 31 is not installed. Either install it in the Android SDK Manager (Tools > Open Android SDK Manager...), or change the Xamarin.Android project to target an API version that is installed
Run Code Online (Sandbox Code Playgroud)
我找不到更改 API 级别的选项。
编辑:我可以找到一种方法来定位较新的版本,并将其添加为答案,但超过 30 岁的绰号仍未被识别,并且我收到错误,
NETSDKZZZZ: Error getting pack version: Pack 'Microsoft.Android.Ref.30' was not present in workload manifests.
Run Code Online (Sandbox Code Playgroud) 在 Visual Studio 中尝试编译时,我得到一个 static_assert,但是当我单击该错误时,它需要断言本身而不是有问题的行。
如何找出哪一行触发了static_assert?