-
Notifications
You must be signed in to change notification settings - Fork 367
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
Can't change Platform from AnyCPU in Visual Studio 2015 #306
Comments
Visual Studio will only list the configurations and platforms defined in the project. It's possible they got removed from the SHFB project. You can use the configuration manager in Visual Studio to add them back if they aren't there. |
Thanks for the reply They are all there. With the shfb I can only set the platform to whichever The other thing I've noticed is that in the Solution Configuration Manager, On Tuesday, 14 June 2016, Eric Woodruff [email protected] wrote:
Kevin |
I'm not sure why the platform cannot be changed or edited. As far as I know it used to work. It could be that the older MPF project system isn't working as well in VS2015. In my test, the documentation project's platform didn't make any difference. Even if left set to AnyCPU, it still picked up the correct x86 configuration assembly. If that's not working for you, you can explicitly set the configuration and platform on the documentation source properties. When those properties are set, it ignores the values for the containing SHFB project. |
The problem I'm seeing is that our build server builds for release and I'm trying to set the project source to be the the project file (and not The symptom I saw in VS2015 was the inability to change the platform for I've 'fixed' this for now by having the help build only for one Kevin On 15 June 2016 at 00:22, Eric Woodruff [email protected] wrote:
Kevin |
Building the help for each configuration is probably unnecessary unless there are actual differences in the API based on the configuration. Limiting it to one configuration is probably the best solution. |
Sure, on the build server that's true. Of course the problem is I have no TBH that's probably not going to be an issue right now so it's something I thanks On 15 June 2016 at 16:20, Eric Woodruff [email protected] wrote:
Kevin |
I haven't been able to find out why this stopped working. As noted above, you may be able to work around it by explicitly setting the platform and configuration to use on the documentation sources. |
After reading it the second time, I understood what you mean, thank you! I will put my further comments there. |
I can tell you that this problem is still happening in VS 2019. |
The same here. When I embed the property in my project and simply set it to
I cannot load the project anymore. If I completely remove it it shows only AnyCPU, which I don't want
it works. |
I experienced the same problem. For me, the problem stemmed from the fact that I changed a lot of projects from PCL (.shproj) to libraries (.csproj). Unless the project type GUID in the .sln file is changed, then VS won't change anything. I simply replaced More on project type guids here |
Still happening with VS2022 ! |
Worked for me too! The GUI seems buggy. |
I'm including a Sandcastle project in a VS2015 solution. I set the Documentation Sources to be a csproj file. If I go to the solution configuration the 'platform' for the solution is set to x86 (say) but the 'platform' for the help project is set to AnyCPU and I can't change it, i.e., if I try and select any other platform type and save the configuration, when I look at the configuration again the 'platform' is reset to AnyCPU.
This means that if I build the solution under anything than AnyCPU the help build fail as it's looking in the wrong directory for the assembly.
If I load the build in the SandCastle GUI and change the platform then it builds fine.
I'm running 2016.5.28.0
The text was updated successfully, but these errors were encountered: