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

'GetItemTemplateNameFromVSTemplatePath' task failed unexpectedly #64

Open
gwin003 opened this issue Feb 24, 2015 · 2 comments
Open

'GetItemTemplateNameFromVSTemplatePath' task failed unexpectedly #64

gwin003 opened this issue Feb 24, 2015 · 2 comments

Comments

@gwin003
Copy link

gwin003 commented Feb 24, 2015

I just randomly started seeing this error while compiling my Template project. I have checked all my filenames and files for odd characters and everything is fine there, yet this error persists.

Error   1   The "GetItemTemplateNameFromVSTemplatePath" task failed unexpectedly.
System.ArgumentException: Illegal characters in path.
   at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
   at System.Security.Permissions.FileIOPermission.CheckIllegalCharacters(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.FileInfo.Init(String fileName, Boolean checkHost)
   at System.IO.FileInfo..ctor(String fileName)
   at LigerShark.TemplateBuilder.Tasks.GetItemTemplateNameFromVSTemplatePath.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() Templates

What can I do to further debug this? What else could be causing this?

EDIT: It seems to be failing on GetItemTemplateNameFromVSTemplatePath - Line 62, which is:

System.IO.FileInfo vsTemplateFileInfo = new System.IO.FileInfo(VstemplateFilePath);

How can I see the current contents of the VstemplateFilePath?

@luismts
Copy link

luismts commented Jan 1, 2021

Any solution on this?

@sayedihashimi
Copy link
Member

I believe you can get this error if there is no .vstemplate file discovered.

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

No branches or pull requests

3 participants