-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Visual Studio Designer issue when target is AnyCPU (63.0.0) #2276
Comments
Thanks for the detailed bug report 👍 Have you tested with a newer version of visual studio? I don't immediately see why the x64 libs would be chosen. The duplicate AnyCPU entry is strange, maybe the difference in case causes a problem. AnyCPU vs AnyCpu |
I'm able to reproduce using VS 2017, so don't think it's that @amaitland I'm unable to switch between the two |
If someone has the time to try the 62.0.0-pre01 packages would be helpful. Isolate if the choose when changes made in #2083 are a problem |
@thicout Thanks for confirming 👍 |
I'm hopeful the second AnyCPU target issue is resolved with 4ff892b I've only done minimal testing at this stage. The defaulting to x64 is a mystery still |
Thanks for your help @amaitland. |
One problem down then 👍 I'll look closer at the defaulting to x64 issue when I have time. Short term you can target x86 for development and just switch to AnyCPU for deployment. |
I've had multiple attempts at this and still don't have a solution, appears the running The only solution I can think of currently is to have |
Hopefully this resolves the issue with the VS Designer picking up the x64 ones. Issue #2276
In one final attempt I may have resolved the problem. It appears that Relevant commit is 837506d The With a little more testing I'll make the simplest possible change to the |
…perty with both means the x64 are imported first) It appears that VS is ignoring the HintPath and using the x64 binary even though we tell it to use the x86 This hopefully resolves #2276
The The |
Thank you for your great work. |
What version of the product are you using?
63.0.0
and63.0.1
NugetWhat architecture x86 or x64?
AnyCPU
On what operating system?
Windows 7
/Visual Studio 2012
Are you using
WinForms
,WPF
orOffScreen
?WPF
What steps will reproduce the problem?
CefSharp.MinimalExample.Wpf
(it should succeed)Visual Studio
MainWindow.xaml
inVisual Studio Designer
What is the expected output?
Visual Studio Designer
should display theMainWindow
design (like it was with57.0.0
)What do you see instead?
The
MainWindow
design is not displayed inVisual Studio Designer
Visual Studio Designer
shows error: Invalid MarkupXAML editor
shows error: The name "ChromiumWebBrowser" does not exist in the namespace "clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"Please provide any additional information below.
In my main
WPF
app, which targetsAnyCPU
, build / run is working good with63.0.0
. The problem is that I can not work with theVisual Studio Designer
/XAML editor
(I can't see auto completion, navigate to event handler...). It is working good if I downgrade to57.0.0
.When you reproduce the steps above, before step 2 (build), if you check
BUILD
>Configuration Manager...
>Project Plateform
combobox, you should see that there is only oneAnyCPU
item. But after the63.0.0
installation and restart ofVisual Studio
, there is twoAnyCPU
items. You can see my screenshot below.Finally, I noticed that with
63.0.0
, when targetingAnyCPU
, theCefSharp
,CefSharp.Core
andCefSharp.Wpf
References
arex64
dll (underProperties
>Path
). Whereas with57.0.0
it isx86
. This may explain the designer error.If I reproduce the steps above, but install
57.0.0
(Package Manager Console
=> Install-Package CefSharp.Wpf -Version 57.0.0) before step 2 (build), designer work properly.The text was updated successfully, but these errors were encountered: