diff options
author | Larry Ewing <lewing@microsoft.com> | 2022-09-15 20:36:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-15 20:36:27 +0300 |
commit | f2e52a8fa04511e3489fe687ea0bd7429442fbcb (patch) | |
tree | 1d4a656268dd8216b935a1cb235e0c079a4542e6 | |
parent | 07e2bc649a9a69f9fab6765c073990be6de5dece (diff) | |
parent | 1b2d95c07db0943150782c20a3a3ef229e3659e2 (diff) |
Merge pull request #7799 from dotnet/thaystg-patch-1
Update workaround for evaluate expressions in a wasm hosted apps
-rw-r--r-- | release-notes/7.0/known-issues.md | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/release-notes/7.0/known-issues.md b/release-notes/7.0/known-issues.md index a5363438..23eb7714 100644 --- a/release-notes/7.0/known-issues.md +++ b/release-notes/7.0/known-issues.md @@ -4,6 +4,50 @@ You may encounter the following known issues, which may include workarounds, mit ## .NET Runtime +### Unable to evaluate expressions in a Blazor WebAssembly App + +It isn't possible to evaluate expressions in a Blazor WebAssembly app using .NET 7 RC1 https://github.com/dotnet/runtime/pull/75495 + +#### Workaround for a Blazor WebAssembly Hosted App: + +Copy the following into the server project (`.csproj`) of a `.NET 7 Preview RC1` Blazor WebAssembly Hosted App: + +```xml + <ItemGroup> + <PackageReference Include="Microsoft.CodeAnalysis.Scripting.Common" Version="3.7.0" ExcludeAssets="all" GeneratePathProperty="true"/> + <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="3.7.0" ExcludeAssets="all" GeneratePathProperty="true"/> + </ItemGroup> + <Target Name="_CopyCodeAnalysisDeps" AfterTargets="Build"> + <Copy SourceFiles="$(PkgMicrosoft_CodeAnalysis_Scripting_Common)\lib\netstandard2.0\Microsoft.CodeAnalysis.Scripting.dll" + DestinationFolder="$(OutputPath)\BlazorDebugProxy" + SkipUnchangedFiles="true"/> + <Copy SourceFiles="$(PkgMicrosoft_CodeAnalysis_CSharp_Scripting)\lib\netstandard2.0\Microsoft.CodeAnalysis.CSharp.Scripting.dll" + DestinationFolder="$(OutputPath)\BlazorDebugProxy" + SkipUnchangedFiles="true"/> + </Target> +``` + +#### Workaround for a Blazor WebAssembly Standalone App: + +Copy the following into a `.NET 7 Preview RC1` Blazor WebAssembly project (`.csproj`): + +```xml + <ItemGroup> + <PackageReference Include="Microsoft.CodeAnalysis.Scripting.Common" Version="3.7.0" ExcludeAssets="all" GeneratePathProperty="true"/> + <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="3.7.0" ExcludeAssets="all" GeneratePathProperty="true"/> + </ItemGroup> + <Target Name="_CopyCodeAnalysisDeps" AfterTargets="Build"> + <Copy SourceFiles="$(PkgMicrosoft_CodeAnalysis_Scripting_Common)\lib\netstandard2.0\Microsoft.CodeAnalysis.Scripting.dll" + DestinationFolder="$(PkgMicrosoft_AspNetCore_Components_WebAssembly_DevServer)\tools\BlazorDebugProxy" + SkipUnchangedFiles="true"/> + <Copy SourceFiles="$(PkgMicrosoft_CodeAnalysis_CSharp_Scripting)\lib\netstandard2.0\Microsoft.CodeAnalysis.CSharp.Scripting.dll" + DestinationFolder="$(PkgMicrosoft_AspNetCore_Components_WebAssembly_DevServer)\tools\BlazorDebugProxy" + SkipUnchangedFiles="true"/> + </Target> +``` + +That will copy the missing dependency into the DevServer package and enable evaluation of expression on Wasm debugging in .NET 7.0 Preview RC1 after a single build. This workaround only needs to be run once per package root to repair the DevServer package but should be harmless to leave in. + ### Unable to debug a Blazor WebAssembly App It isn't possible to debug a Blazor WebAssembly app using .NET 7 Preview 5 https://github.com/dotnet/runtime/pull/70383 |