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
stringSdk name like "Microsoft.NET.Sdk" or "Microsoft.NET.Sdk.WindowsDesktop".
targetFramework
TargetFrameworkTargetFramework
that project's target framework.useWindowsForms
boolIndicates whether Windows Forms assembly references are available for the project.
useWpf
boolIndicates whether WPF assembly references are available for the project.
implicitUsings
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.
frameworkReferences
IReadOnlyList<string>The list of shared frameworks that contains a collection of assembly references for this project.