Basic API Template using Newtonsoft library
How To Use
- Download project and save as .zip file
- Place the .zip file at Visual Studio Project Templates Folder (ex. ..\Documents\Visual Studio 2019\Templates\ProjectTemplates)
- Restart Visual Studio
- Load project as template for new project(s)
- Open .csproj file in Text Editor App
- Comment this line (If still exist)
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props'))" />
</Target>
- Build the project
- You're good to go :)