ligershark / template-builder

This project will output a NuGet package which can be used to help create Visual Studio Item Templates and Project templates
Other
42 stars 28 forks source link

System.ArgumentException: Illegal characters in path. #91

Open Bobisback opened 8 years ago

Bobisback commented 8 years ago

Hello,

I would not consider this a issue as it is probably my lack of knowledge that is causing the problem.

I am trying to setup a mutiproject template using sidewaffle and template builder. I am using a combination of these two tutorials (I think they are made by the same person lol): https://www.youtube.com/watch?v=z33jOo75CH4 and https://github.com/ligershark/side-waffle/wiki/How-to-create-a-multi-project-template. When I am building the VISX project I get the following exception:

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.QuickDemand(FileIOPermissionAccess access, String fullPath, 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.d__26.MoveNext()

Any ideas what might be causing this and how to troubleshoot it. I guess a messed up path name is a good guess. Just not sure where to start. As a side note I used the same project to make a mutiproject solution template using this method: https://www.jayway.com/2015/03/13/visual-studio-how-to-create-a-solution-template-with-multiple-projects/. And it worked fine was just not very maintainable. Hence why I am trying this approach.

Any help would be appreciated as this is my first template I am trying to create. I just need a nudge in the right direction.

Thanks, Bob

1TheMuffinMan commented 7 years ago

I am getting the same issue.