这个错误是什么意思? '错误:无法找到项目配置项目的项目参考'
我是Blazor和.Net的新手,我正在尝试遵循CRUD教程。我正在尝试在大麻中产生API控制器脚手架。我将其命名为superHerocontroller.cs,然后单击“构建”。它返回:
/usr/local/share/dotnet/sdk/6.0.202/sdks/microsoft.net.sdk.razor/targets/microsofts/microsoft.net.sdk.razor.razor.razor.staticwebassets.targets.targets.targets.targets (5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,yror:error:error:::: Unable to find a project reference for project configuration item '/Users/myname/Projects/BlazorFullStackCrud/BlazorFullstackCrud/Client/BlazorFullstackCrud.Client.csproj' (BlazorFullstackCrud.Server)
I check the file in question: Microsoft.NET.Sdk.Razor. staticwebassets.targets
,这是代码的有问题行,尽管我不明白为什么。
<MergeConfigurationProperties
CandidateConfigurations="@(_ReferencedProjectsConfiguration)"
ProjectReferences="@(_StaticWebAssetProjectReference)">
谁能解释为什么它返回此错误?
I am new to Blazor and .NET and I am trying to follow a CRUD tutorial. I am trying to generate a API controller scaffold in Blazor. I name it SuperHeroController.cs and click build. It returns with:
/usr/local/share/dotnet/sdk/6.0.202/Sdks/Microsoft.NET.Sdk.Razor/targets/Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(5,5): Error: Unable to find a project reference for project configuration item '/Users/myname/Projects/BlazorFullStackCrud/BlazorFullstackCrud/Client/BlazorFullstackCrud.Client.csproj' (BlazorFullstackCrud.Server)
I check the file in question: Microsoft.NET.Sdk.Razor.StaticWebAssets.targets
And this is the problematic line of code although I don't understand why.
<MergeConfigurationProperties
CandidateConfigurations="@(_ReferencedProjectsConfiguration)"
ProjectReferences="@(_StaticWebAssetProjectReference)">
Can anyone explain why it is returning this error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,解决此问题的解决方案是添加
到
.client.csproj
中。So the solution to solve this question is to add
into
.Client.csproj
.