Constructor Project
- Namespace
- Alternet.Common.Projects.DotNet.SdkStyleReferences
- Assembly
- Alternet.Common.v10.dll
Project(string?, TargetFramework?, IList<TargetFramework>?, bool, bool, bool, bool, string?, string?, bool, string?, IReadOnlyList<string>)
Initializes a new instance of the Project class with specified parameters.
public Project(string? sdk, TargetFramework? targetFramework, IList<TargetFramework>? targetFrameworks, bool useWindowsForms, bool useWpf, bool useMaui, bool implicitUsings, string? myType, string? version, bool generateAssemblyInfo, string? languageVersion, IReadOnlyList<string> frameworkReferences)
Parameters
sdkstringSdk name like "Microsoft.NET.Sdk" or "Microsoft.NET.Sdk.WindowsDesktop".
targetFrameworkTargetFrameworkTargetFrameworkthat project's target framework.targetFrameworksIList<TargetFramework>useWindowsFormsboolIndicates whether Windows Forms assembly references are available for the project.
useWpfboolIndicates whether WPF assembly references are available for the project.
useMauiboolimplicitUsingsboolIndicates whether implicit global using directives are enabled in the project.
myTypestringIndicates MyType for VB projects.
versionstringIndicates Assembly version.
generateAssemblyInfoboolSpecifies that assembly info needs to be generated.
languageVersionstringframeworkReferencesIReadOnlyList<string>The list of shared frameworks that contains a collection of assembly references for this project.