diff --git a/src/VisualStudio.Roslyn.SDK/Roslyn.SDK.Template.Wizard/RoslynSDKRootTemplateWizard.cs b/src/VisualStudio.Roslyn.SDK/Roslyn.SDK.Template.Wizard/RoslynSDKRootTemplateWizard.cs index 9875b5f8d3..a74df4b699 100644 --- a/src/VisualStudio.Roslyn.SDK/Roslyn.SDK.Template.Wizard/RoslynSDKRootTemplateWizard.cs +++ b/src/VisualStudio.Roslyn.SDK/Roslyn.SDK.Template.Wizard/RoslynSDKRootTemplateWizard.cs @@ -9,19 +9,6 @@ public partial class RoslynSDKRootTemplateWizard { - private const string NuGetConfig = @" - - - - - - - - - - -"; - public static Dictionary GlobalDictionary = new Dictionary(); private void OnRunStarted(DTE dte, Dictionary replacementsDictionary, WizardRunKind runKind, object[] customParams) @@ -31,22 +18,5 @@ private void OnRunStarted(DTE dte, Dictionary replacementsDictio // add the root project name (the name the user passed in) to the global replacement dictionary GlobalDictionary["$saferootprojectname$"] = replacementsDictionary["$safeprojectname$"]; GlobalDictionary["$saferootidentifiername$"] = replacementsDictionary["$safeprojectname$"].Replace(".",""); - - if (!replacementsDictionary.TryGetValue("$solutiondirectory$", out var solutionFolder)) - { - var solutionFile = dte.Solution.FullName; - if (string.IsNullOrEmpty(solutionFile)) - return; - - solutionFolder = Path.GetDirectoryName(solutionFile); - } - - if (Directory.Exists(solutionFolder)) - { - File.WriteAllText( - Path.Combine(solutionFolder, "NuGet.config"), - NuGetConfig, - Encoding.UTF8); - } } } diff --git a/src/VisualStudio.Roslyn.SDK/Roslyn.SDK/ProjectTemplates/CSharp/Diagnostic/Test/Test.csproj b/src/VisualStudio.Roslyn.SDK/Roslyn.SDK/ProjectTemplates/CSharp/Diagnostic/Test/Test.csproj index 9c07533daa..3ff076d889 100644 --- a/src/VisualStudio.Roslyn.SDK/Roslyn.SDK/ProjectTemplates/CSharp/Diagnostic/Test/Test.csproj +++ b/src/VisualStudio.Roslyn.SDK/Roslyn.SDK/ProjectTemplates/CSharp/Diagnostic/Test/Test.csproj @@ -12,12 +12,12 @@ - - - - - - + + + + + + diff --git a/src/VisualStudio.Roslyn.SDK/Roslyn.SDK/ProjectTemplates/VisualBasic/Diagnostic/Test/UnitTestProject.vbproj b/src/VisualStudio.Roslyn.SDK/Roslyn.SDK/ProjectTemplates/VisualBasic/Diagnostic/Test/UnitTestProject.vbproj index 75b2bcd1f9..5704446480 100644 --- a/src/VisualStudio.Roslyn.SDK/Roslyn.SDK/ProjectTemplates/VisualBasic/Diagnostic/Test/UnitTestProject.vbproj +++ b/src/VisualStudio.Roslyn.SDK/Roslyn.SDK/ProjectTemplates/VisualBasic/Diagnostic/Test/UnitTestProject.vbproj @@ -12,12 +12,12 @@ - - - - - - + + + + + +