コード例 #1
0
        public static SolutionWizard With_NetFrameworkClassLibrary(this SolutionWizard wizard, string assemblyName, NetFrameworkPlatform targetFrameworkVersion)
        {
            Project newProj = new NetFrameworkClassLibraryProject(assemblyName, targetFrameworkVersion);

            newProj.AddFileToFolder(new ProjectFile(SolutionWizard.CreateEmpty_NetFramework_ClassFile(assemblyName)));

            wizard.WithProject(newProj);

            return(wizard);
        }
コード例 #2
0
        public static SolutionWizard With_NetCoreConsoleApplication(this SolutionWizard wizard, string assemblyName, NetCorePlatform targetFrameworkVersion)
        {
            Project newConsoleApp = new NetCoreConsoleApplicationProject(assemblyName, targetFrameworkVersion);

            newConsoleApp.AddFileToFolder(new ProjectFile(SolutionWizard.CreateDefault_NetFramework_ConsoleProgram(assemblyName)));

            wizard.WithProject(newConsoleApp);

            return(wizard);
        }