Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VS 2015 Project Template

Status
Not open for further replies.

JScannell

Programmer
Jan 9, 2001
306
US
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
 

All I can think of is this part of the path looks weird: "Temp\xxxxx\Temp". Should there be a second "Temp" in there?

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
Try creating a new project with no spaces or special characters in the name and see if the template will load.

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
The name of the template is "AMS_NEW_TRSJOB". The name of the original one is "AMS_TRSJOB". There aren't any spaces in either name.


Jerry Scannell
 
Not the template name, the name of the project where you're trying to load the template.

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
I'm creating a new project that doesn't have a name yet. You have to choose the template first. It's in that phase where I get the error. I haven't even gotten to the point where I can name it. Even at that, the default project name would be <template name>1 or in my case AMS_NEW_TRSJOB1 assuming I could get that far.



Jerry Scannell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top