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

[Wasm] .NET 9.0.102 fails with no value for parameter "OutputPackagePath" #19232

Open
emem67 opened this issue Jan 15, 2025 · 9 comments
Open
Assignees
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification

Comments

@emem67
Copy link

emem67 commented Jan 15, 2025

Current behavior

I also tried to create a new empty solution with only windows and webassembly and I still get this:

MSB4044 The "GenerateUnoAssetsManifest_v05da712db32bc85a0fb32e039ff4b1d24a10ddbb" task was not given a value for the required parameter "OutputPackagePath". UnoApp1 (net9.0-browserwasm) C:\Users\xxxx.nuget\packages\uno.wasm.bootstrap\9.0.8\build\Uno.Wasm.Bootstrap.targets 270

I would like to understand if it is just me and the update to visual studio was just a coincidence.
Thanks

Expected behavior

it should compile

How to reproduce it (as minimally and precisely as possible)

Create a new Uno Platform project from VS
.net9
WebAssembly and Windows
MVVM XAML
Material theme
no extensions no navigation no features
build selecting WinAppSDK Unpackage

Workaround

very stupid, remove the webassembly target from the *.csproj

remove: net9.0-windows10.0.26100;net9.0-browserwasm
add : net9.0-windows10.0.26100

Works on UWP/WinUI

None

Environment

Windows 11 + VisualStudio to 17.12.14

NuGet package version(s)

"Uno.Sdk": "5.5.56"

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

@emem67 emem67 added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Jan 15, 2025
@emem67 emem67 changed the title After updating VisualStudio to 17.12.14 I got an error compiling for web assembly After updating VisualStudio to 17.12.14 I got an error compiling for web assembly (no value for parameter "OutputPackagePath") Jan 15, 2025
@jeromelaban
Copy link
Member

Thanks for the report! We're not reproducing this issue. Could you provide a binlog of the error?

@jeromelaban jeromelaban added the triage/needs-information Indicates an issue needs more information in order to work on it. label Jan 15, 2025
@emem67
Copy link
Author

emem67 commented Jan 15, 2025

Here is the binlog
msbuild.binlog.zip

@github-actions github-actions bot removed the triage/needs-information Indicates an issue needs more information in order to work on it. label Jan 15, 2025
@jeromelaban
Copy link
Member

jeromelaban commented Jan 15, 2025

Thanks, this helps. This is a breaking changes introduced in the .NET SDK 9.0.102. We'll take a look.

@jeromelaban jeromelaban self-assigned this Jan 15, 2025
@jeromelaban jeromelaban changed the title After updating VisualStudio to 17.12.14 I got an error compiling for web assembly (no value for parameter "OutputPackagePath") [Wasm] .NET 9.0.102 fails with no value for parameter "OutputPackagePath" Jan 15, 2025
@jeromelaban
Copy link
Member

As a workaround, you can install .NET 9.0.101, then modify the following global.json at the root of your solution to specify the version of .NET to use:

{
  "msbuild-sdks": {
    "Uno.Sdk": "5.5.56"
  },
  "sdk": {
    "version": "9.0.101",
    "rollForward": "disable"
  }
}

@jeromelaban
Copy link
Member

jeromelaban commented Jan 15, 2025

Another possible workaround is to add the following to the csproj, without having to downgrade .NET:

<PropertyGroup>
	<UnoGenerateAssetsManifestDependsOn>
		$(UnoGenerateAssetsManifestDependsOn);
		GenerateUnoWasmAssets;
	</UnoGenerateAssetsManifestDependsOn>
</PropertyGroup>

@emem67
Copy link
Author

emem67 commented Jan 15, 2025

Another possible workaround is to add the following to the csproj, without having to downgrade .NET:

$(UnoGenerateAssetsManifestDependsOn); GenerateUnoWasmAssets;

this is solving my issue, looking forward for the fix, many thanks for the support

@DierkDroth
Copy link

Another possible workaround is to add the following to the csproj, without having to downgrade .NET:

$(UnoGenerateAssetsManifestDependsOn); GenerateUnoWasmAssets;

Thanks @jeromelaban.
Would that section needed to be removed at a later point e.g. on official UNO 5.6 release?

@jeromelaban
Copy link
Member

@DierkDroth no, but in your case, you can update to the latest uno.wasm.bootstrap 9.0.10 which includes the fix for this issue.

This issue is kept opened because the fix is not yet included in an uno.sdk release.

@DierkDroth
Copy link

Thanks for clarification @jeromelaban

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

No branches or pull requests

3 participants