Constructor Project
- Namespace
- Alternet.Common.DotNet.Projects.SdkStyleReferences
- Assembly
- Alternet.Common.v9.dll
Project(string?, TargetFramework, bool, bool, bool, string?, string?, bool, IReadOnlyList<string>)
Initializes a new instance of the Project class with specified parameters.
public Project(string? sdk, TargetFramework targetFramework, bool useWindowsForms, bool useWpf, bool implicitUsings, string? myType, string? version, bool generateAssemblyInfo, IReadOnlyList<string> frameworkReferences)
Parameters
sdkstringSdk name like "Microsoft.NET.Sdk" or "Microsoft.NET.Sdk.WindowsDesktop".
targetFrameworkTargetFrameworkTargetFrameworkthat project's target framework.useWindowsFormsboolIndicates whether Windows Forms assembly references are available for the project.
useWpfboolIndicates whether WPF assembly references are available for the project.
implicitUsingsboolIndicates 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.
frameworkReferencesIReadOnlyList<string>The list of shared frameworks that contains a collection of assembly references for this project.