I'm having problems generating a C# WPF project #2146
Unanswered
Igor-rd-Costa
asked this question in
Q&A
Replies: 2 comments
-
@Igor-rd-Costa Any news on it? Have you find a fix or an automatic workaround? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@gaetandezeiraud this should fix it: function platformsElement(cfg)
_p(2, '<Platforms>AnyCpu;arm64;x64</Platforms>')
end
--should not be needed
function configurationsElement(cfg)
_p(2, '<Configurations>debug;distribution;release</Configurations>')
end
premake.override(premake.vstudio.cs2005.elements, "projectProperties", function (oldfn, cfg)
return table.join(oldfn(cfg), {
platformsElement,
configurationsElement,
})
end) i ran in the same problem this should fix it for now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have a Visual Studio solution that contains some C++ project and a WPF project and I'm facing some issues when trying to add the WPF project to the premake setup. Bellow are the relevant solution and project settings.
I'm having two problems:
The project is not being generated with the correct configurations (it only has
Debug
andRelease
available) and it is not being generated with the correct architecture, C++ projects are being created with ax64
platform, while the C# project is created withAny CPU
. This is causing the C# project to not be set to build by default and even after manually enabling the build Visual Studio is skipping it. To fix this and be able to build it I have to open the configuration manager and create a newx64
project platform for the C# project. Doing this gives me an error that says that it could not created thex64
configuration because the solution already had a config with that name (not selectable in the C# project). Even with the error the C# project is able to build afterwards, still using theAny CPU
config. What do I need to do to fix this?Solving the problem described above allows the project to build successfuly but gives me some warning about the
Nullable
setting on the C# project not being enabled. How can I set this in the premake script?Beta Was this translation helpful? Give feedback.
All reactions