Table of Contents

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

sdk string

Sdk name like "Microsoft.NET.Sdk" or "Microsoft.NET.Sdk.WindowsDesktop".

targetFramework TargetFramework

TargetFramework that project's target framework.

useWindowsForms bool

Indicates whether Windows Forms assembly references are available for the project.

useWpf bool

Indicates whether WPF assembly references are available for the project.

implicitUsings bool

Indicates whether implicit global using directives are enabled in the project.

myType string

Indicates MyType for VB projects.

version string

Indicates Assembly version.

generateAssemblyInfo bool

Specifies that assembly info needs to be generated.

frameworkReferences IReadOnlyList<string>

The list of shared frameworks that contains a collection of assembly references for this project.