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
sdk
stringSdk name like "Microsoft.NET.Sdk" or "Microsoft.NET.Sdk.WindowsDesktop".
targetFramework
TargetFrameworkTargetFramework
that project's target framework.targetFrameworks
IList<TargetFramework>useWindowsForms
boolIndicates whether Windows Forms assembly references are available for the project.
useWpf
boolIndicates whether WPF assembly references are available for the project.
useMaui
boolimplicitUsings
boolIndicates whether implicit global using directives are enabled in the project.
myType
stringIndicates MyType for VB projects.
version
stringIndicates Assembly version.
generateAssemblyInfo
boolSpecifies that assembly info needs to be generated.
languageVersion
stringframeworkReferences
IReadOnlyList<string>The list of shared frameworks that contains a collection of assembly references for this project.