Visual Studio Templates
No edit summary
No edit summary
Line 1: Line 1:
The visual studio templates are definitions that help users to create projects for running MDriven Framework.
Visual Studio templates are definitions that help users create projects for running MDriven Framework.


The Visual Studio templates changed from version VS2017.
The Visual Studio templates changed from version VS2017.


Important paths for how the templates work (visual studio generic information):
Important paths for how the templates work (Visual Studio generic information):


MDriven installs templates here: C:\Users\<User>\Documents\Visual Studio 201X\Templates
MDriven installs templates here: C:\Users\<User>\Documents\Visual Studio 201X\Templates
Line 9: Line 9:
We do so by writing .vstman files; MDrivenSolution.vstman and MDrivenEcoSpaceAndModel.vstman. These files are manifests and point out where the actual template lies:
We do so by writing .vstman files; MDrivenSolution.vstman and MDrivenEcoSpaceAndModel.vstman. These files are manifests and point out where the actual template lies:
  <RelativePathOnDisk>CSharp\MDriven7.0\Eco7.0Solution_cs.zip</RelativePathOnDisk>
  <RelativePathOnDisk>CSharp\MDriven7.0\Eco7.0Solution_cs.zip</RelativePathOnDisk>
The actual template is a zip file and placed like this:
The actual template is a zip file that is placed like this:


<Templates>\MDriven7.0\Eco7.0Solution_cs.zip
<Templates>\MDriven7.0\Eco7.0Solution_cs.zip


If there are problems with the templates they could be resetted by Developer command prompt for VS2017.: devenv /updateconfiguration
If there are problems with the templates, they could be reset by the Developer command prompt for VS2017.: devenv /updateconfiguration


(prior to vs2017 devenv /setup was used - I am not sure if it still works or does the same thing)
(prior to vs2017 devenv /setup was used - I am not sure if it still works or does the same thing)


==== Missing templates ====
==== Missing Templates ====
If the templates are missing check where your user Documents path leads to, ie https://www.computerhope.com/issues/ch001735.htm#windows-10 . Note that this may be on OneDrive for some users.
If the templates are missing, check where your user Documents path leads to, ie https://www.computerhope.com/issues/ch001735.htm#windows-10. Note that this may be on OneDrive for some users.


Check the corresponding path for the '''user that installed''' the MDriven-Framework.  
Check the corresponding path for the '''user that installed''' the MDriven-Framework.  


Find the MDriven templates from the MDriven installation under the installing users documents folder "Documents\Visual Studio 201x\Templates\ItemTemplates\MDriven" and "Documents\Visual Studio 201x\Templates\ProjectTemplates\MDriven", where x is 7 or 9 for VS2017 of VS2019.
Find the MDriven templates from the MDriven installation under the installing user's Documents folder "Documents\Visual Studio 201x\Templates\ItemTemplates\MDriven" and "Documents\Visual Studio 201x\Templates\ProjectTemplates\MDriven", where x is 7 or 9 for VS2017 of VS2019.


Copy these and put them under your users Documents folder in the same relative location.
Copy these and put them under your user's Documents folder in the same relative location.


Restart Visual Studio.
Restart Visual Studio.
[[Category:Visual Studio]]
[[Category:Visual Studio]]

Revision as of 06:12, 24 February 2023

Visual Studio templates are definitions that help users create projects for running MDriven Framework.

The Visual Studio templates changed from version VS2017.

Important paths for how the templates work (Visual Studio generic information):

MDriven installs templates here: C:\Users\<User>\Documents\Visual Studio 201X\Templates

We do so by writing .vstman files; MDrivenSolution.vstman and MDrivenEcoSpaceAndModel.vstman. These files are manifests and point out where the actual template lies:

<RelativePathOnDisk>CSharp\MDriven7.0\Eco7.0Solution_cs.zip</RelativePathOnDisk>

The actual template is a zip file that is placed like this:

<Templates>\MDriven7.0\Eco7.0Solution_cs.zip

If there are problems with the templates, they could be reset by the Developer command prompt for VS2017.: devenv /updateconfiguration

(prior to vs2017 devenv /setup was used - I am not sure if it still works or does the same thing)

Missing Templates

If the templates are missing, check where your user Documents path leads to, ie https://www.computerhope.com/issues/ch001735.htm#windows-10. Note that this may be on OneDrive for some users.

Check the corresponding path for the user that installed the MDriven-Framework.

Find the MDriven templates from the MDriven installation under the installing user's Documents folder "Documents\Visual Studio 201x\Templates\ItemTemplates\MDriven" and "Documents\Visual Studio 201x\Templates\ProjectTemplates\MDriven", where x is 7 or 9 for VS2017 of VS2019.

Copy these and put them under your user's Documents folder in the same relative location.

Restart Visual Studio.

This page was edited 100 days ago on 02/10/2024. What links here