rider error

i installed rider with full version. I just created a basic windows forms application. I then build the solution. it gives me the below error

Microsoft.Common.CurrentVersion.targets(3032, 5): [MSB4216] Could not run the "GenerateResource" task because MSBuild could not create or connect to a task host with runtime "CLR4" and architecture "x86". Please ensure that (1) the requested runtime and/or architecture are available on the machine, and (2) that the required executable "C:\Program Files\JetBrains\JetBrains Rider 2020.1.0\tools\MSBuild\Current\Bin\MSBuild.exe" exists and can be run.

 

Microsoft.Common.CurrentVersion.targets(3054, 7): [MSB4028] The "GenerateResource" task's outputs could not be retrieved from the "FilesWritten" parameter. Object does not match target type.

 

 

3 comments
Comment actions Permalink

Unfortunately, Rider cannot build a WinForms app using the bundled JetBrains MSBuild. I've created an issue for this case: https://youtrack.jetbrains.com/issue/RIDER-43598

The workaround is to use Visual Studio MSBuild. You can configure Rider to use it in `File | Settings | Build, Execution, Deployment | Toolset and Build -> Use MSBuild version`

1
Comment actions Permalink

Julia Vaseva I'm not sure if I understand this comment well. I was compiling WinForms apps like 2 years ago, even before Rider with Designer GUI was released (I was programming forms manually). So are you talking about some regression? I was not  using Visual Studio msbuild (unless it was silently provided / configured by Rider installation). Also according to my findings (see https://youtrack.jetbrains.com/issue/RIDER-46357) there were versions of msbuild shipped with Rider capable of compiling either for ANY/preferred 32 bit or 64 bit targets, problem just started about 2020.1+ when some versions were correct for ANY/32 and other for 64 bit targets. But still seems to me basing on what Rider is showing in my msbuild setup, that both versions are NOT the Visual Studio versions. Or am I missing something?

0
Comment actions Permalink

Mateusz Pavlic,

Your issue look more complex than it looked like on the first glance. We're investigating it on YouTrack, please watch RIDER-46357 for updates.

0

Please sign in to leave a comment.