WPF Problem Resources Generator

Marc Andrei B. Regulacion 1 Reputation point
2020-07-08T02:04:10.087+00:00

Severity Code Description Project File Line Suppression State
Error The "ResourcesGenerator" task failed unexpectedly.
System.ArgumentException: Illegal characters in path.
at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
at MS.Internal.Tasks.TaskHelper.CreateFullFilePath(String thePath, String rootPath)
at Microsoft.Build.Tasks.Windows.ResourcesGenerator.ValidResourceFiles(ITaskItem[] inputFiles)
at Microsoft.Build.Tasks.Windows.ResourcesGenerator.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() Otsutsuki

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,784 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sabrina Cosolo 126 Reputation points
    2020-07-08T07:45:28.077+00:00

    Usually this error means you have a resource with an invalid name

    The resources names follow the rules of the Variables so name must start with a letter, no spaces, no dashes no points
    take a look at the names.

    HTH

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.