premake / premake-core

Premake
https://premake.github.io/
BSD 3-Clause "New" or "Revised" License
3.24k stars 618 forks source link

add `TargetFrameworkMoinker` with dotnetframework function #886

Closed realvictorprm closed 7 years ago

realvictorprm commented 7 years ago

I'm running into issues with the new F# support. Visual Studio can't open my project files because frameworkName is NULL. The solution was to add this to the project file: <TargetFrameworkMoniker>.NETFramework,Version=v2.0</TargetFrameworkMoniker> (Version replaced with the correct one).

I don't know whether others face this issue too but I'll investigate how to add this automatically if the dotnet framework version was specified.

realvictorprm commented 7 years ago

okay I found a better solution, it was enough to add this to my project file <Import Project="$(FSharpTargetsPath)" />. Unfortunately I don't know which VS versions support it.

realvictorprm commented 7 years ago

I just realized that it must be a typo.

realvictorprm commented 7 years ago

Closed via #887