Skip to content

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

@edwardskrod

Description

@edwardskrod

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions