You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I add the <StaticWebAssetsEnabled>false</StaticWebAssetsEnabled> to webassembly client project (that I want to also pack), it gets the following error and is not building:
MSB4036 The "DefineStaticWebAssets" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64" directory. Client1 C:\Users\..\.nuget\packages\microsoft.net.sdk.webassembly.pack\8.0.0\build\Microsoft.NET.Sdk.WebAssembly.Browser.targets 280
I don't need static web assets when I pack this client, just the package web assets are sufficient , So what is this error and how to solve this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
when I add the
<StaticWebAssetsEnabled>false</StaticWebAssetsEnabled>
to webassembly client project (that I want to also pack), it gets the following error and is not building:MSB4036 The "DefineStaticWebAssets" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64" directory. Client1 C:\Users\..\.nuget\packages\microsoft.net.sdk.webassembly.pack\8.0.0\build\Microsoft.NET.Sdk.WebAssembly.Browser.targets 280
I don't need static web assets when I pack this client, just the package web assets are sufficient , So what is this error and how to solve this?
Beta Was this translation helpful? Give feedback.
All reactions