-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathVsProjectFramework.cs
More file actions
39 lines (35 loc) · 1.65 KB
/
VsProjectFramework.cs
File metadata and controls
39 lines (35 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//*****************************************************************************
//* Code Factory SDK
//* Copyright (c) 2021 CodeFactory, LLC
//*****************************************************************************
using System.Collections.Generic;
namespace CodeFactory.VisualStudio
{
/// <summary>
/// Data class that implements <see cref="IVsProjectFramework"/>
/// </summary>
public abstract class VsProjectFramework: VsModel, IVsProjectFramework
{
/// <summary>
/// Backing field the for property <see cref="Version"/>
/// </summary>
private readonly string _version;
/// <summary>
/// Creates a new instances of the <see cref="VsProjectFramework"/> model.
/// </summary>
/// <param name="isLoaded">Flag that determines if the model is loaded.</param>
/// <param name="hasErrors">Flag that determines if errors occurred while loading the model.</param>
/// <param name="modelErrors">The list of errors that occurred if any.</param>
/// <param name="framework">The name of the framework being deployed to.</param>
/// <param name="version">The target version of the framework.</param>
protected VsProjectFramework(bool isLoaded, bool hasErrors, IReadOnlyList<ModelException<VisualStudioModelType>> modelErrors,
string framework, string version) : base(isLoaded,hasErrors,modelErrors, VisualStudioModelType.ProjectFramework,framework)
{
_version = version;
}
/// <inheritdoc />
public string Framework => Name;
/// <inheritdoc />
public string Version => _version;
}
}