What causes the "ResolveManifestFiles" task terminated unexpectedly. Illegal characters in transit

The "ResolveManifestFiles" task failed unexpectedly.
System.ArgumentException: Illegal characters in path.
   at System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str)
   at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
   at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
   at System.IO.Path.GetFullPath(String path)
   at Microsoft.Build.Tasks.Deployment.ManifestUtilities.Util.RemoveDuplicateItems(ITaskItem[] items)
   at Microsoft.Build.Tasks.ResolveManifestFiles.set_NativeAssemblies(ITaskItem[] value)

The "NativeAssemblies=@(NativeReferenceFile);@(_DeploymentNativePrerequisite)" parameter for the "ResolveManifestFiles" task is invalid.

The "ResolveManifestFiles" task could not be initialized with its input parameters.
+5
source share
1 answer

I got the same build errors until I allowed VFP to automatically register my COM library after it was created. After I did this, I had to remove the .dll link from my project and add it again, after which my project built and ran only the file.

If you have this problem, you might want to make sure that you do not have a link to your own library that is not registered. To register such a .dll, manually use the Regsvr32 utility .

+5
source

All Articles