[release/6.0.1xx-rc2] BlazorWasm: Fix including the target assembly#21104
Conversation
.. and update BlazorOverwrite.targets to include the fix from dotnet/sdk#21104 .
SteveSandersonMS
left a comment
There was a problem hiding this comment.
Makes sense based on what I saw before. Will this make it able to pick up DllImport from ProjectReferences too (if it didn’t already)?
Can you elaborate on this? |
|
I just wanted to check that the issue that prevented it seeing your main assembly didn’t also prevent it from seeing the assemblies of other projects in your solution. We know the feature works for PackageReference dependencies, but does it work for ProjectReference dependencies? Has that been tried out? Hope that makes sense! |
Yes, dllimports in referenced projects would get scanned for pinvokes during the native build. Currently, the native library won't get automatically included in the app project though. IOW, you would need an explicit |
Package authors could already fix that themselves by including some MSBuild in their package that adds a |
|
@marcpopMSFT what is the process to get this in rc2 now? |
Fixes dotnet/runtime#59255 . (cherry picked from commit f70cf06)
Use
$(IntermediateAssembly)when gathering files for wasm build.Fixes dotnet/runtime#59255 .