INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

VS 2015 Project Template

VS 2015 Project Template

(OP)
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

RE: VS 2015 Project Template


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!

RE: VS 2015 Project Template

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!

RE: VS 2015 Project Template

(OP)
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

RE: VS 2015 Project Template

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!

RE: VS 2015 Project Template

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close