We have a project template that a previous employee created. We need to modify it. I have done the following:
1. Unzipped the original project template .zip file into a temporaray location so I don't upset the original one.
2. Changed a few things like DLL referencing in the vbproj file and some minor code changes in main.vb.
3. Added a folder and some files to the bin folder
4. Changed the name of the .vbproj file in preparation of creating the new template
5. Created a new zip file with the new naming convention and copied it to the C:\Users\xxx\Documents\Visual Studio 2015\Templates\ProjectTemplates\Visual Basic path.
6. From an "Administrator: Developer Command Prompt for VS2015" prompt I ran the command: devenv /installvstemplates (that put my new project template into the C:\Users\pgs\AppData\Roaming\Microsoft\VisualStudio\14.0\ProjectTemplatesCache path)
7. Opened up VS, clicked on "New Project", navigated to my new template which now shows up in the list and then clicked OK.
That's where it goes awry. One of the files that is part of the project can't be found for some reason. I checked the syntax of the <ItemGroup> against another .vbproj file and they are the same. The file that it says it can't find is: bin\TimssToken.Default. Here's the contents of the vbproj file where the ItemGroup is defined:
<ItemGroup>
<None Include="app.config" />
<None Include="bin\TimssToken.Default" />
<None Include="My Project\Application.myapp">
<Generator>MyApplicationCodeGenerator</Generator>
<LastGenOutput>Application.Designer.vb</LastGenOutput>
</None>
<None Include="My Project\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<CustomToolNamespace>My</CustomToolNamespace>
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
</None>
<None Include="Reports\$safeprojectname$_EXCEPTION.RPT" />
<None Include="Reports\$safeprojectname$_PROCESS.RPT" />
</ItemGroup>
The popup error says it can't find the file in: C:\Users\pgs\AppData\Local\Temp\xxxxx\Temp\bin\TimssToken.Default (xxxxx always is a different value. Must be a temporary location). After I click OK I don't get any of the project's files or folders in the IDE so that error must completely stop everything.
If I open up the project template zip file myself and look in the bin folder, the file is there.
So, what is the problem? I haven't seen anything anywhere that says I have to do anything with the project template zip file except put it in the ProjectTemplates\Visual Basic folder. I even tried unzipping the template file up in the ProjectTemplates\Visual Basic folder but that was even worse.
Thanks in advance,
Jerry
Jerry Scannell
1. Unzipped the original project template .zip file into a temporaray location so I don't upset the original one.
2. Changed a few things like DLL referencing in the vbproj file and some minor code changes in main.vb.
3. Added a folder and some files to the bin folder
4. Changed the name of the .vbproj file in preparation of creating the new template
5. Created a new zip file with the new naming convention and copied it to the C:\Users\xxx\Documents\Visual Studio 2015\Templates\ProjectTemplates\Visual Basic path.
6. From an "Administrator: Developer Command Prompt for VS2015" prompt I ran the command: devenv /installvstemplates (that put my new project template into the C:\Users\pgs\AppData\Roaming\Microsoft\VisualStudio\14.0\ProjectTemplatesCache path)
7. Opened up VS, clicked on "New Project", navigated to my new template which now shows up in the list and then clicked OK.
That's where it goes awry. One of the files that is part of the project can't be found for some reason. I checked the syntax of the <ItemGroup> against another .vbproj file and they are the same. The file that it says it can't find is: bin\TimssToken.Default. Here's the contents of the vbproj file where the ItemGroup is defined:
<ItemGroup>
<None Include="app.config" />
<None Include="bin\TimssToken.Default" />
<None Include="My Project\Application.myapp">
<Generator>MyApplicationCodeGenerator</Generator>
<LastGenOutput>Application.Designer.vb</LastGenOutput>
</None>
<None Include="My Project\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<CustomToolNamespace>My</CustomToolNamespace>
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
</None>
<None Include="Reports\$safeprojectname$_EXCEPTION.RPT" />
<None Include="Reports\$safeprojectname$_PROCESS.RPT" />
</ItemGroup>
The popup error says it can't find the file in: C:\Users\pgs\AppData\Local\Temp\xxxxx\Temp\bin\TimssToken.Default (xxxxx always is a different value. Must be a temporary location). After I click OK I don't get any of the project's files or folders in the IDE so that error must completely stop everything.
If I open up the project template zip file myself and look in the bin folder, the file is there.
So, what is the problem? I haven't seen anything anywhere that says I have to do anything with the project template zip file except put it in the ProjectTemplates\Visual Basic folder. I even tried unzipping the template file up in the ProjectTemplates\Visual Basic folder but that was even worse.
Thanks in advance,
Jerry
Jerry Scannell