-
Notifications
You must be signed in to change notification settings - Fork 388
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
Building project with CefSharp fails to build until I restart visual studio #4158
Comments
This issue was moved to dotnet/msbuild#3875 |
Sorry, reopening this, it looks like a project-system issue. @tmeschter this is legacy project system, can you take a look? |
Eventually, yes. I'm pretty backed up at the moment, though. :-( |
@maxinfet Migrating to the newer |
@amaitland Unfortunately we can not make that change very quickly for our main project. It is on our radar to make the move to the |
@maxinfet You still use packages.config, overall the changes are trivial and take a few minutes to make, there are even powershell scripts that people have written. This change relates to how the packages are restored, not how they're included/managed. Read the article if you haven't already. |
It is the preferred approach when using CefSharp, it's listed in the Nuget Readme |
@amaitland I can remove the |
@amaitland After removing the |
I changed the ReproductionApplication to use |
Tom's triage notes: Given that the scenario works when using |
@tmeschter Is there a reason you won't fix this? It quite clearly is a regression in |
@melytc: Please figure out this if this a regression from previous versions and send back to triage |
You can use https://github.com/cefsharp/CefSharp.MinimalExample for testing purposes, it provides both an old packages.config (Non-SDK-style project)
Subsequent builds will work as expected.
PackageReference (SDK-style project)
Building with If you switch between the solutions you'll have to manually delete the obj folder in each project. I haven't managed to wrangle Please let me know if you require any additional information. |
@amaitland We are using |
@maxinfet I've updated my comment to hopefully make it clearer. Using the terminology outlined in https://docs.microsoft.com/en-us/nuget/resources/check-project-format to hopefully eliminate any confusion. |
I see what's going on with this. The fundamental issue is that the When the restore occurs the files will be written to disk. If we were to re-evaluate the project at that point we would pick them up and the Fundamentally this is a known limitation of packages.config-style NuGet packages, and the solution is to move to I am closing this bug and marking it "Resolution-By-Design" as everything is working as well as expected. |
One final attempt to workaround dotnet/project-system#4158 The None/Content entries aren't picked up as the .targets file doesn't exist before the Nuget restore (only when using packages.config) Attempt to copy the files via calling CefRedist32CopyResources/CefRedist64CopyResources tasks. Properties aren't accessible, I believe that tasks should be, so hopefully this copies the files. Build actions like Publish are very unlikely to work correctly as the files won't have been included via the <Content/> entries.
One final attempt to workaround dotnet/project-system#4158 The None/Content entries aren't picked up as the .targets file doesn't exist before the Nuget restore (only when using packages.config) Attempt to copy the files via calling CefRedist32CopyResources/CefRedist64CopyResources tasks. Properties aren't accessible, I believe that tasks should be, so hopefully this copies the files. Build actions like Publish are very unlikely to work correctly as the files won't have been included via the <Content/> entries.
Issue
In 15.7.6 the reproduction project I linked bellow builds every single time even when restoring nuget packages. As of 15.8.6 the first build will fail with the following error
The tag 'ChromiumWebBrowser' does not exist in XML namespace 'clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf'.
After I perform another rebuild it will build fine.For our main solution it does not matter how many times we rebuild it will not build until we follow the steps in issue #3930. When we were on 15.8.5 we got a different set of errors, but on 15.8.6 we get the same error as my reproduction project.
Solution Details
Error Details
This issue is happening during
MarkupCompilePass1
. This output is from a reproduction project I put here.The text was updated successfully, but these errors were encountered: