Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MSbuild APIs to Retrieve Projects Properties #45724

Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
e9c2a23
Use msbuild APIs to load projects
mariam-abdulla Jan 3, 2025
e7bcc8a
Add space
mariam-abdulla Jan 3, 2025
8d747c7
Fix formatting
mariam-abdulla Jan 6, 2025
2b02833
Add comments
mariam-abdulla Jan 6, 2025
f4cce4e
Update src/Cli/dotnet/commands/dotnet-test/TestingPlatformCommand.cs
mariam-abdulla Jan 6, 2025
f078060
Replace 0 and 1 with constants
mariam-abdulla Jan 6, 2025
4c9add2
Merge branch 'dev/mabdullah/use-msbuild-apis-to-retrieve-project-prop…
mariam-abdulla Jan 6, 2025
771c1f1
Return from InitializeTestApplications() if _areTestingPlatformApplic…
mariam-abdulla Jan 6, 2025
def3cb8
Update method name
mariam-abdulla Jan 6, 2025
3b75ca8
Use aggregator overload in ProcessProjectsInParallel()
mariam-abdulla Jan 6, 2025
8e3b723
Apply some comments
mariam-abdulla Jan 6, 2025
b7b79ef
Remove ?
mariam-abdulla Jan 7, 2025
5349e6c
Update GetSolutionFilePaths
mariam-abdulla Jan 7, 2025
cbc3389
Use Microsoft.VisualStudio.SolutionPersistence namespace to parse sol…
mariam-abdulla Jan 7, 2025
9284893
Add GetSlnFileFullPath and GetProjectFileFullPath methods in Extensio…
mariam-abdulla Jan 7, 2025
6b42f48
Refactor
mariam-abdulla Jan 7, 2025
51c7424
Update ParseSolution to use GetSerializerByMoniker
mariam-abdulla Jan 7, 2025
3855845
Merge branch 'main' into dev/mabdullah/use-msbuild-apis-to-retrieve-p…
mariam-abdulla Jan 8, 2025
082f260
Update src/Cli/dotnet/commands/dotnet-test/TestingPlatformCommand.cs
mariam-abdulla Jan 8, 2025
ae87351
Update src/Cli/dotnet/commands/dotnet-test/SolutionAndProjectUtility.cs
mariam-abdulla Jan 8, 2025
3e26cd3
Update src/Cli/dotnet/commands/dotnet-test/SolutionAndProjectUtility.cs
mariam-abdulla Jan 8, 2025
31593b0
Update src/Cli/dotnet/commands/dotnet-test/SolutionAndProjectUtility.cs
mariam-abdulla Jan 8, 2025
f781164
Update src/Cli/dotnet/commands/dotnet-test/SolutionAndProjectUtility.cs
mariam-abdulla Jan 8, 2025
7e359d1
Merge branch 'main' into dev/mabdullah/use-msbuild-apis-to-retrieve-p…
mariam-abdulla Jan 8, 2025
3c3d56b
Update src/Cli/dotnet/commands/dotnet-test/SolutionAndProjectUtility.cs
mariam-abdulla Jan 8, 2025
55d247d
Apply comments
mariam-abdulla Jan 8, 2025
d3b11c5
merge
mariam-abdulla Jan 8, 2025
41323d4
Update src/Cli/dotnet/commands/dotnet-test/SolutionAndProjectUtility.cs
mariam-abdulla Jan 8, 2025
a774524
Use Lock
mariam-abdulla Jan 8, 2025
9d17be2
Merge branch 'dev/mabdullah/use-msbuild-apis-to-retrieve-project-prop…
mariam-abdulla Jan 8, 2025
3f66a69
Update -bl logic
mariam-abdulla Jan 8, 2025
97b5ae9
Merge branch 'main' into dev/mabdullah/use-msbuild-apis-to-retrieve-p…
mariam-abdulla Jan 8, 2025
4f2b769
Remove unused var
mariam-abdulla Jan 8, 2025
6504a67
Merge branch 'dev/mabdullah/use-msbuild-apis-to-retrieve-project-prop…
mariam-abdulla Jan 8, 2025
ddb5bb4
Merge branch 'main' into dev/mabdullah/use-msbuild-apis-to-retrieve-p…
mariam-abdulla Jan 9, 2025
5e26d3d
Merge branch 'main' into dev/mabdullah/use-msbuild-apis-to-retrieve-p…
mariam-abdulla Jan 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update GetSolutionFilePaths
mariam-abdulla committed Jan 7, 2025
commit 5349e6ccdec2e38bb48e8a5eebc49910aba78da7
Original file line number Diff line number Diff line change
@@ -53,19 +53,13 @@ public static IEnumerable<string> GetProjectsFromSolutionFile(string solutionFil

private static string[] GetSolutionFilePaths(string directory)
{
var solutionFiles = Directory.GetFiles(directory, "*.sln*", SearchOption.TopDirectoryOnly)
.Where(f => IsSolutionFile(f))
var solutionFiles = Directory.GetFiles(directory, "*.sln", SearchOption.TopDirectoryOnly)
.Concat(Directory.GetFiles(directory, "*.slnx", SearchOption.TopDirectoryOnly))
.ToArray();

return solutionFiles;
}

private static bool IsSolutionFile(string filePath)
{
var extension = Path.GetExtension(filePath);
return extension.Equals(".sln", StringComparison.OrdinalIgnoreCase) || extension.Equals(".slnx", StringComparison.OrdinalIgnoreCase);
}

private static string[] GetProjectFilePaths(string directory)
{
var projectFiles = Directory.GetFiles(directory, "*.*proj", SearchOption.TopDirectoryOnly)
Loading
Oops, something went wrong.