[csproj] Update generator to handle platform-specific assemblies (#4847)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Sat, 13 May 2017 15:26:35 +0000 (17:26 +0200)
committerGitHub <noreply@github.com>
Sat, 13 May 2017 15:26:35 +0000 (17:26 +0200)
commit291a32febcc78ff5b9c01fd9da7c5ef776795523
tree7fd0b011687e06e304bc9a37c385e7d51c0fa49d
parent62bc1b229ee0501b706f3ea39524180c0ae7fc26
[csproj] Update generator to handle platform-specific assemblies (#4847)

After https://github.com/mono/mono/pull/4837 was merged the
csproj update bot started sending PRs which hardcoded net_4_x-linux
as the OutputPath.

Updated the csproj generator to detect this and use a variable
in the OutputPath instead. It'll autodetect based on the current OS
and can be overriden by passing /p:HostPlatform=foobar to msbuild.

Ideally we'd have configurations for each platform in the csproj since
in the future the file lists will be different but this is a first step.
mcs/.gitignore
msvc/scripts/csproj.tmpl
msvc/scripts/genproj.cs