Closed elachlan closed 1 year ago
slightly related: #8381
@Shyam-Gupta / @Tanya-Solyanik do you know if we have a known issue for this in the designer repo? @elachlan , is this consistent for any target apps or Just .NET 8? Can you try with latest SDK installed form here https://github.com/dotnet/installer
Forgot to include my VS info:
Microsoft Visual Studio Community 2022
Version 17.5.0 Preview 2.0
VisualStudio.17.Preview/17.5.0-pre.2.0+33209.295
Microsoft .NET Framework
Version 4.8.04084
Installed Version: Community
Preview VS with .NET 7 works fine.
The issue has mostly been isolated to the Winforms project so far, when I try and open any of the forms/controls in the designer.
Installing the latest SDK did not stop the error. I am starting VS from winfroms via start-vs.cmd
Starting visual studio directly against the solution file also results in an error.
In the latest VS with .Net 7 or .Net 8, they have same result: tested forms in WinformsControlsTest are not loaded successfully by start-vs.cmd
or opening Winforms.sln directly. Winforms designer repo has the same issue: https://github.com/microsoft/winforms-designer/issues/1901.
.Net 7.0: just .Net 7.0 installed, and tested WinformsControlsTest app in Winforms release/7.0 branch
.Net 8.0: installed the latest .Net 8.0, and tested WinformsControlsTest app in Winforms main branch
@Olina-Zhang do you have an issue with BuildAssist
having an error?
@Olina-Zhang do you have an issue with
BuildAssist
having an error?
Is it?
Seems okay. Thanks. That isolates it a bit.
FYI - @Shyam-Gupta , is investigating this issue.
The designer load failure is specific to WinformsControlsTest
project in this repo. It doesn’t repro for new projects or other existing projects. Failure in WinformsControlsTest
project is not a customer scenario because this project has project reference to System.Windows.Forms
dll.
In normal customer scenario, CLR loads this dll from .NET SDK location and works fine. But for WinformsControlsTest
project, it tries to look for this dll (version 42.42.42.42424) in the ShadowCache base folder (location of DesignToolsServer.exe
), where it is not present and hence server process load fails. This dll is shadow cached inside UserAppData
folder which is the correct location for project reference dlls.
There is no easy way to make designer work for this project without any perf impact. Hence IMO this bug is a won't fix.
cc: @merriemcgaw
I get the exact same error opening a control in System.Windows.Forms
/System.Windows.Forms.Design
. Its not isolated to WinformsControlsTest
for me.
Seems okay. Thanks. That isolates it a bit.
It is the issue: https://github.com/dotnet/project-system/issues/8721
Thank you!!! I have been going crazy without debug.
I get the exact same error opening a control in
System.Windows.Forms
/System.Windows.Forms.Design
. Its not isolated toWinformsControlsTest
for me.
It's the same root cause.
Environment
Edition Windows 10 Pro Version 21H2 Installed on 25-Mar-22 OS build 19044.2364 Experience Windows Feature Experience Pack 120.2212.4190.0
.NET version
.NET 8
Did this work in a previous version of Visual Studio and/or previous .NET release?
I am unsure if the designer previously worked.
Issue description
The designer fails to open a form in any of the projects of Winforms.
Steps to reproduce
Installed latest VS Preview and opened a form in
WinformsControlsTest
.Diagnostics