Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 80c059c

Browse filesBrowse files
committed
Moved ProjectFileInfo out in a separate file
1 parent 23a6075 commit 80c059c
Copy full SHA for 80c059c

File tree

2 files changed

+30
-12
lines changed
Filter options

2 files changed

+30
-12
lines changed
+30Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
namespace Dotnet.Script.DependencyModel.ProjectSystem
2+
{
3+
/// <summary>
4+
/// Contains information about the generated project file and
5+
/// where to find the "nearest" NuGet.Config file.
6+
/// </summary>
7+
public class ProjectFileInfo
8+
{
9+
/// <summary>
10+
/// Initializes a new instance of the <see cref="ProjectFileInfo"/> class.
11+
/// </summary>
12+
/// <param name="path">The path to the generated project file to be used during restore.</param>
13+
/// <param name="nugetConfigFile">The path to the nearest NuGet.Config file seen from the target script folder.</param>
14+
public ProjectFileInfo(string path, string nugetConfigFile)
15+
{
16+
Path = path;
17+
NuGetConfigFile = nugetConfigFile;
18+
}
19+
20+
/// <summary>
21+
/// Gets the path of the generated project file to be used during restore.
22+
/// </summary>
23+
public string Path { get; }
24+
25+
/// <summary>
26+
/// Gets the path to the nearest NuGet.Config file seen from the target script folder.
27+
/// </summary>
28+
public string NuGetConfigFile { get; }
29+
}
30+
}

‎src/Dotnet.Script.DependencyModel/ProjectSystem/ScriptProjectProvider.cs

Copy file name to clipboardExpand all lines: src/Dotnet.Script.DependencyModel/ProjectSystem/ScriptProjectProvider.cs
-12Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,4 @@ public static string GetPathToProjectFile(string targetDirectory)
135135
return pathToProjectFile;
136136
}
137137
}
138-
139-
public class ProjectFileInfo
140-
{
141-
public ProjectFileInfo(string path, string nugetConfigFile)
142-
{
143-
Path = path;
144-
NuGetConfigFile = nugetConfigFile;
145-
}
146-
147-
public string Path { get; }
148-
public string NuGetConfigFile { get; }
149-
}
150138
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.