Skip to content
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

The "GenerateResource" task failed unexpectedly. MSBuild Error: Somehow got a wrong and possibly incompatible type for ProcessResourceFiles. #5494

Closed
edwardskrod opened this issue Jul 8, 2020 · 2 comments
Assignees
Milestone

Comments

@edwardskrod
Copy link
Member

Steps to reproduce

  1. In Visual Studio, install the UWP Workloads
  2. Create a new UWP project (File -> New -> Project -> Blank App (Universal Winodws) C#
  3. Set the minimum platform version to 15063 (RS2)
  4. Set configuration to Release / x64
  5. F5

This repros with TPMinV <= 15063
This repros on 16.7 and 16.8
We first noticed this error July 1 in VS build rel.d16.7-30301.191.

According to Ben Villalobos, the bug was introduced by #5471

Command Line

msbuild App1.csproj /p:Platform=x64;Configuration=release

Expected behavior

The project build successfully.

Actual behavior

Severity Description Project
Error The "GenerateResource" task failed unexpectedly.Microsoft.Build.Shared.InternalErrorException: MSB0001: Internal MSBuild Error: Somehow got a wrong and possibly incompatible type for ProcessResourceFiles.   at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Exception innerException, Object[] args)   at Microsoft.Build.Tasks.GenerateResource.Execute()   at Microsoft.Build.CommandLine.OutOfProcTaskAppDomainWrapperBase.InstantiateAndExecuteTask(IBuildEngine oopTaskHostNode, LoadedType taskType, String taskName, String taskLocation, String taskFile, Int32 taskLine, Int32 taskColumn, AppDomainSetup appDomainSetup, IDictionary`2 taskParams) App2

Environment data

msbuild /version output: MSBuild version: Microsoft (R) Build Engine version 16.7.0-preview-20330-08+96403c598 for .NET Framework

OS info:

Build 18362.19h1_release.190318-1202

@rainersigwald
Copy link
Member

rainersigwald commented Jul 8, 2020

This also affects ResolveCOMReference (AB#1150959).

@rainersigwald
Copy link
Member

Should have been long fixed by #5496.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants