I'm using a scaffolding in visual studio 2017 now, but I want to set up my own scaffolding template and controller and I want to replace the previous one
Play around with all MVC templates at C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ItemTemplates\CSharp\Web\MVC\1033
Refer: How do I create my own Scaffold Template in ASP.NET MVC 3?
Related
Visual Studio 2017 includes a project template for creating optional packages in C#. However, there is no corresponding project template for C++/WinRT. Is there any way to create the same kind of optional package using C++/WinRT in Visual Studio?
There's no separate 'Optional Code Package' visual studio template for C++\WinRT. Please see the OptionalPackageSample repository on GitHub. It creates a OptionalPackageDLL
to show how to create a project with code that can be executed from the main package. The MyMainApp project demonstrates how to load code from the OptionalPackageDLL.dll file.
Is it possible to add custom scaffolding templates to Visual Studio 2017 community for things like MVC Controllers and Views?
I've seen a number of tutorials which suggest adding custom templates to the following locations but nothing seems to work:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web\Mvc\Scaffolding\Templates
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\ItemTemplates\CSharp\Web\MVC 4\CodeTemplates
C:\Users\<user>\.nuget\packages\microsoft.visualstudio.web.codegenerators.mvc\2.0.4\Templates
For example, if I want to add a new Controller via the right-click menu, any custom templates added to the above locations just do not show. Likewise the View templates do not appear either.
Ok, so the following steps work:
Copy the Templates folder from the following location to the root of the project directory:
C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.visualstudio.web.codegenerators.mvc\<version>
In VS2017, when adding a Controller or View, the selected scaffold is then brought in from the local Template directory residing within the project. These can be tweaked and changed as necessary.
It looks as though it is not possible to "add" to the scaffold list.
My question is about how can I use Onsen UI in visual studio 2017? I need to use this framework to build an app with Apache Cordova.
There's no template for Visual Studio 2017.
The next best option is to make a blank Apache Cordova App and add the Onsen UI template manually.
As said on another forum, I haven't personally tried out this method.
I am having a difficult time downloading Visual Studio 2017 (Community).
I want to exclude Win10_Emulator and Win10SDK
Which parameters do I pass to the offline installer exe to exclude them?
I want to update the SSDT Unit Test template to wrap a transaction around each unit test using the information from https://msdn.microsoft.com/en-us/library/jj851217(v=vs.103).aspx to add this capability.
Are the T4 templates for SSDT Unit Testing available? If so, where can I find them? Or is there another template mechanism used for SSDT Unit Tests?
The file location varies by Visual Studio version, the 2015 files are in:
C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\IDE\ItemTemplates\CSharp\SQL Server\1033\SqlUnitTest.zip