The Wayback Machine - https://web.archive.org/web/20220214101644/https://github.com/dotnet/aspnetcore/issues/40196
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[.Net 6.0.102] dotnet pack - Microsoft.NET.Sdk.Razor.StaticWebAssets.targets NotFoundException #40196

Open
1 task done
charlesjj261633jj opened this issue Feb 14, 2022 · 0 comments

Comments

@charlesjj261633jj
Copy link

@charlesjj261633jj charlesjj261633jj commented Feb 14, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Hello guys, I found the Issue with very similar question, link below:
Microsoft.NET.Sdk.Razor.StaticWebAssets.targets DirectoryNotFoundException
maybe the same too:
MauiRazorClassLibrary sometimes doesn't build when building the SLN, causing StaticWebAssets to fail

but the defferent is, I have same problem when packing instead of building
here's my csproj file setting:
<PropertyGroup> <TargetFramework>net6.0</TargetFramework> <!-- <IncludeContentInPack>true</IncludeContentInPack> --> <IsPackable>true</IsPackable> <!-- <IncludeBuildOutput>false</IncludeBuildOutput> --> <!-- <ContentTargetFolders>content</ContentTargetFolders> --> <EnableDefaultContentItems>false</EnableDefaultContentItems> <!-- <NoDefaultExcludes>true</NoDefaultExcludes> --> <GeneratePackageOnBuild>True</GeneratePackageOnBuild> <!-- <PackageOutputPath>.</PackageOutputPath> --> </PropertyGroup>

when I run commend of dotnet pack, will get the result like:
dotnet\sdk\6.0.102\Sdks\Microsoft.NET.Sdk.Razor\targets\Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(522,5): error : Manifest file at 'src\NineYi.ExtTemplate\obj\Debug\net6.0\staticwebassets.build.json' not found. [src\NineYi.ExtTemplate\NineYi.ExtTemplate.csproj]

Expected Behavior

can be pack well without this problem

Steps To Reproduce

No response

Exceptions (if any)

dotnet\sdk\6.0.102\Sdks\Microsoft.NET.Sdk.Razor\targets\Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(522,5): error : Manifest file at 'src\NineYi.ExtTemplate\obj\Debug\net6.0\staticwebassets.build.json' not found. [src\NineYi.ExtTemplate\NineYi.ExtTemplate.csproj]

.NET Version

6.0.102

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant