Skip to content

Commit

Permalink
Add c++ project support only in .net framework (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
sensslen authored Feb 26, 2024
1 parent 358f57c commit 57276cd
Show file tree
Hide file tree
Showing 77 changed files with 4,540 additions and 12,538 deletions.
61 changes: 40 additions & 21 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,59 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest, macos-latest]

include:
- os: ubuntu-latest
buildConfiguration: "Release"
framework: [net6.0, net7.0, net8.0]

- os: windows-latest
buildConfiguration: "TestWindows"
include:
- targetFramework: net6.0
dotnetVersion: "6.0.x"

- targetFramework: net7.0
dotnetVersion: "7.0.x"

- os: macos-latest
buildConfiguration: "Release"
- targetFramework: net8.0
dotnetVersion: "8.0.x"

steps:
- uses: actions/checkout@v4
- name: Setup dotnet 6.0.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: "6.0.x"
- name: Setup dotnet 7.0.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: "7.0.x"
- name: Setup dotnet 8.0.x

- name: Setup dotnet ${{ matrix.dotnetVersion }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
dotnet-version: ${{ matrix.dotnetVersion }}

- name: restore
run: dotnet restore
run: dotnet restore -p:TargetFramework=${{ matrix.framework }}

- name: build
run: dotnet build --configuration Release

- name: test
run: dotnet test --configuration Release -f ${{ matrix.framework }} --no-restore

test_windows:
runs-on: windows-latest
strategy:
matrix:
framework: [net6.0, net7.0, net8.0, net472]
steps:
- uses: actions/checkout@v4
- uses: nuget/setup-nuget@v2
- run: nuget restore NuGetUtility.sln

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2

- name: build
run: dotnet build --configuration ${{ matrix.buildConfiguration }} --no-restore
run: msbuild -t:rebuild -property:Configuration=TestWindows

- name: test
run: dotnet test --configuration ${{ matrix.buildConfiguration }} --no-restore
uses: microsoft/[email protected]
with:
testAssembly: "NuGetUtility.Test.dll"
searchFolder: "tests/NuGetUtility.Test/bin/TestWindows/${{ matrix.framework }}/"
runInParallel: true

check_code_format:
runs-on: ubuntu-latest
Expand Down
109 changes: 109 additions & 0 deletions NuGetUtility.sln
Original file line number Diff line number Diff line change
Expand Up @@ -29,53 +29,161 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
README.md = README.md
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SimpleCppProject", "tests\targets\SimpleCppProject\SimpleCppProject.vcxproj", "{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
TestWindows|Any CPU = TestWindows|Any CPU
TestWindows|x64 = TestWindows|x64
TestWindows|x86 = TestWindows|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Debug|x64.ActiveCfg = Debug|Any CPU
{E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Debug|x64.Build.0 = Debug|Any CPU
{E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Debug|x86.ActiveCfg = Debug|Any CPU
{E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Debug|x86.Build.0 = Debug|Any CPU
{E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Release|Any CPU.Build.0 = Release|Any CPU
{E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Release|x64.ActiveCfg = Release|Any CPU
{E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Release|x64.Build.0 = Release|Any CPU
{E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Release|x86.ActiveCfg = Release|Any CPU
{E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Release|x86.Build.0 = Release|Any CPU
{E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.TestWindows|Any CPU.ActiveCfg = TestWindows|Any CPU
{E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.TestWindows|Any CPU.Build.0 = TestWindows|Any CPU
{E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.TestWindows|x64.ActiveCfg = TestWindows|Any CPU
{E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.TestWindows|x64.Build.0 = TestWindows|Any CPU
{E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.TestWindows|x86.ActiveCfg = TestWindows|Any CPU
{E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.TestWindows|x86.Build.0 = TestWindows|Any CPU
{1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Debug|x64.ActiveCfg = Debug|Any CPU
{1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Debug|x64.Build.0 = Debug|Any CPU
{1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Debug|x86.ActiveCfg = Debug|Any CPU
{1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Debug|x86.Build.0 = Debug|Any CPU
{1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Release|Any CPU.Build.0 = Release|Any CPU
{1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Release|x64.ActiveCfg = Release|Any CPU
{1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Release|x64.Build.0 = Release|Any CPU
{1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Release|x86.ActiveCfg = Release|Any CPU
{1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Release|x86.Build.0 = Release|Any CPU
{1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.TestWindows|Any CPU.ActiveCfg = TestWindows|Any CPU
{1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.TestWindows|Any CPU.Build.0 = TestWindows|Any CPU
{1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.TestWindows|x64.ActiveCfg = TestWindows|Any CPU
{1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.TestWindows|x64.Build.0 = TestWindows|Any CPU
{1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.TestWindows|x86.ActiveCfg = TestWindows|Any CPU
{1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.TestWindows|x86.Build.0 = TestWindows|Any CPU
{80E2DA74-CA6D-45EC-9272-00C93A574997}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{80E2DA74-CA6D-45EC-9272-00C93A574997}.Debug|Any CPU.Build.0 = Debug|Any CPU
{80E2DA74-CA6D-45EC-9272-00C93A574997}.Debug|x64.ActiveCfg = Debug|Any CPU
{80E2DA74-CA6D-45EC-9272-00C93A574997}.Debug|x64.Build.0 = Debug|Any CPU
{80E2DA74-CA6D-45EC-9272-00C93A574997}.Debug|x86.ActiveCfg = Debug|Any CPU
{80E2DA74-CA6D-45EC-9272-00C93A574997}.Debug|x86.Build.0 = Debug|Any CPU
{80E2DA74-CA6D-45EC-9272-00C93A574997}.Release|Any CPU.ActiveCfg = Release|Any CPU
{80E2DA74-CA6D-45EC-9272-00C93A574997}.Release|Any CPU.Build.0 = Release|Any CPU
{80E2DA74-CA6D-45EC-9272-00C93A574997}.Release|x64.ActiveCfg = Release|Any CPU
{80E2DA74-CA6D-45EC-9272-00C93A574997}.Release|x64.Build.0 = Release|Any CPU
{80E2DA74-CA6D-45EC-9272-00C93A574997}.Release|x86.ActiveCfg = Release|Any CPU
{80E2DA74-CA6D-45EC-9272-00C93A574997}.Release|x86.Build.0 = Release|Any CPU
{80E2DA74-CA6D-45EC-9272-00C93A574997}.TestWindows|Any CPU.ActiveCfg = TestWindows|Any CPU
{80E2DA74-CA6D-45EC-9272-00C93A574997}.TestWindows|Any CPU.Build.0 = TestWindows|Any CPU
{80E2DA74-CA6D-45EC-9272-00C93A574997}.TestWindows|x64.ActiveCfg = TestWindows|Any CPU
{80E2DA74-CA6D-45EC-9272-00C93A574997}.TestWindows|x64.Build.0 = TestWindows|Any CPU
{80E2DA74-CA6D-45EC-9272-00C93A574997}.TestWindows|x86.ActiveCfg = TestWindows|Any CPU
{80E2DA74-CA6D-45EC-9272-00C93A574997}.TestWindows|x86.Build.0 = TestWindows|Any CPU
{FD8ECE33-D357-4611-A909-D9EE9415FB26}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FD8ECE33-D357-4611-A909-D9EE9415FB26}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FD8ECE33-D357-4611-A909-D9EE9415FB26}.Debug|x64.ActiveCfg = Debug|Any CPU
{FD8ECE33-D357-4611-A909-D9EE9415FB26}.Debug|x64.Build.0 = Debug|Any CPU
{FD8ECE33-D357-4611-A909-D9EE9415FB26}.Debug|x86.ActiveCfg = Debug|Any CPU
{FD8ECE33-D357-4611-A909-D9EE9415FB26}.Debug|x86.Build.0 = Debug|Any CPU
{FD8ECE33-D357-4611-A909-D9EE9415FB26}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FD8ECE33-D357-4611-A909-D9EE9415FB26}.Release|Any CPU.Build.0 = Release|Any CPU
{FD8ECE33-D357-4611-A909-D9EE9415FB26}.Release|x64.ActiveCfg = Release|Any CPU
{FD8ECE33-D357-4611-A909-D9EE9415FB26}.Release|x64.Build.0 = Release|Any CPU
{FD8ECE33-D357-4611-A909-D9EE9415FB26}.Release|x86.ActiveCfg = Release|Any CPU
{FD8ECE33-D357-4611-A909-D9EE9415FB26}.Release|x86.Build.0 = Release|Any CPU
{FD8ECE33-D357-4611-A909-D9EE9415FB26}.TestWindows|Any CPU.ActiveCfg = TestWindows|Any CPU
{FD8ECE33-D357-4611-A909-D9EE9415FB26}.TestWindows|Any CPU.Build.0 = TestWindows|Any CPU
{FD8ECE33-D357-4611-A909-D9EE9415FB26}.TestWindows|x64.ActiveCfg = TestWindows|Any CPU
{FD8ECE33-D357-4611-A909-D9EE9415FB26}.TestWindows|x64.Build.0 = TestWindows|Any CPU
{FD8ECE33-D357-4611-A909-D9EE9415FB26}.TestWindows|x86.ActiveCfg = TestWindows|Any CPU
{FD8ECE33-D357-4611-A909-D9EE9415FB26}.TestWindows|x86.Build.0 = TestWindows|Any CPU
{BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Debug|x64.ActiveCfg = Debug|Any CPU
{BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Debug|x64.Build.0 = Debug|Any CPU
{BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Debug|x86.ActiveCfg = Debug|Any CPU
{BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Debug|x86.Build.0 = Debug|Any CPU
{BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Release|x64.ActiveCfg = Release|Any CPU
{BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Release|x64.Build.0 = Release|Any CPU
{BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Release|x86.ActiveCfg = Release|Any CPU
{BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Release|x86.Build.0 = Release|Any CPU
{BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.TestWindows|Any CPU.ActiveCfg = TestWindows|Any CPU
{BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.TestWindows|Any CPU.Build.0 = TestWindows|Any CPU
{BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.TestWindows|x64.ActiveCfg = TestWindows|Any CPU
{BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.TestWindows|x64.Build.0 = TestWindows|Any CPU
{BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.TestWindows|x86.ActiveCfg = TestWindows|Any CPU
{BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.TestWindows|x86.Build.0 = TestWindows|Any CPU
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Debug|x64.ActiveCfg = Debug|Any CPU
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Debug|x64.Build.0 = Debug|Any CPU
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Debug|x86.ActiveCfg = Debug|Any CPU
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Debug|x86.Build.0 = Debug|Any CPU
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Release|Any CPU.Build.0 = Release|Any CPU
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Release|x64.ActiveCfg = Release|Any CPU
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Release|x64.Build.0 = Release|Any CPU
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Release|x86.ActiveCfg = Release|Any CPU
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Release|x86.Build.0 = Release|Any CPU
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.TestWindows|Any CPU.ActiveCfg = TestWindows|Any CPU
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.TestWindows|Any CPU.Build.0 = TestWindows|Any CPU
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.TestWindows|x64.ActiveCfg = TestWindows|Any CPU
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.TestWindows|x64.Build.0 = TestWindows|Any CPU
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.TestWindows|x86.ActiveCfg = TestWindows|Any CPU
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.TestWindows|x86.Build.0 = TestWindows|Any CPU
{3150479E-4370-408D-8A93-7C0CDC281CC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3150479E-4370-408D-8A93-7C0CDC281CC3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3150479E-4370-408D-8A93-7C0CDC281CC3}.Debug|x64.ActiveCfg = Debug|Any CPU
{3150479E-4370-408D-8A93-7C0CDC281CC3}.Debug|x64.Build.0 = Debug|Any CPU
{3150479E-4370-408D-8A93-7C0CDC281CC3}.Debug|x86.ActiveCfg = Debug|Any CPU
{3150479E-4370-408D-8A93-7C0CDC281CC3}.Debug|x86.Build.0 = Debug|Any CPU
{3150479E-4370-408D-8A93-7C0CDC281CC3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3150479E-4370-408D-8A93-7C0CDC281CC3}.Release|Any CPU.Build.0 = Release|Any CPU
{3150479E-4370-408D-8A93-7C0CDC281CC3}.Release|x64.ActiveCfg = Release|Any CPU
{3150479E-4370-408D-8A93-7C0CDC281CC3}.Release|x64.Build.0 = Release|Any CPU
{3150479E-4370-408D-8A93-7C0CDC281CC3}.Release|x86.ActiveCfg = Release|Any CPU
{3150479E-4370-408D-8A93-7C0CDC281CC3}.Release|x86.Build.0 = Release|Any CPU
{3150479E-4370-408D-8A93-7C0CDC281CC3}.TestWindows|Any CPU.ActiveCfg = TestWindows|Any CPU
{3150479E-4370-408D-8A93-7C0CDC281CC3}.TestWindows|Any CPU.Build.0 = TestWindows|Any CPU
{3150479E-4370-408D-8A93-7C0CDC281CC3}.TestWindows|x64.ActiveCfg = TestWindows|Any CPU
{3150479E-4370-408D-8A93-7C0CDC281CC3}.TestWindows|x64.Build.0 = TestWindows|Any CPU
{3150479E-4370-408D-8A93-7C0CDC281CC3}.TestWindows|x86.ActiveCfg = TestWindows|Any CPU
{3150479E-4370-408D-8A93-7C0CDC281CC3}.TestWindows|x86.Build.0 = TestWindows|Any CPU
{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Debug|Any CPU.ActiveCfg = Debug|x64
{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Debug|x64.ActiveCfg = Debug|x64
{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Debug|x64.Build.0 = Debug|x64
{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Debug|x86.ActiveCfg = Debug|Win32
{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Debug|x86.Build.0 = Debug|Win32
{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Release|Any CPU.ActiveCfg = Release|x64
{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Release|x64.ActiveCfg = Release|x64
{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Release|x64.Build.0 = Release|x64
{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Release|x86.ActiveCfg = Release|Win32
{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Release|x86.Build.0 = Release|Win32
{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.TestWindows|Any CPU.ActiveCfg = Debug|x64
{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.TestWindows|Any CPU.Build.0 = Debug|x64
{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.TestWindows|x64.ActiveCfg = Debug|x64
{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.TestWindows|x64.Build.0 = Debug|x64
{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.TestWindows|x86.ActiveCfg = Debug|Win32
{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.TestWindows|x86.Build.0 = Debug|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -89,6 +197,7 @@ Global
{BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D} = {FA92392F-D895-4D1E-A5ED-E6DC3C08223E}
{3DDEC6CB-4FDA-49D1-A358-06BE9200C174} = {FA92392F-D895-4D1E-A5ED-E6DC3C08223E}
{3150479E-4370-408D-8A93-7C0CDC281CC3} = {FA92392F-D895-4D1E-A5ED-E6DC3C08223E}
{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15} = {FA92392F-D895-4D1E-A5ED-E6DC3C08223E}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {70887D40-0182-4C32-BFA1-B5A02E405F11}
Expand Down
6 changes: 3 additions & 3 deletions src/NuGetUtility/Extensions/ProjectExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ public static class ProjectExtensions
private const string PackageReferenceValue = "PackageReference";
private const string PackagesConfigFileName = "packages.config";

public static bool HasNugetPackagesReferenced(this IProject project)
public static bool HasNuGetPackagesReferenced(this IProject project)
{
return (project.GetPackageReferenceCount() > 0) || project.HasPackagesConfigFile();
}

public static bool IsPackageReferenceProject(this IProject project)
{
return TargetIsEqualIfSet(project.GetNugetStyleTag(), PackageReferenceValue) &&
return TargetIsEqualIfSet(project.GetNuGetStyleTag(), PackageReferenceValue) &&
TargetIsEqualIfSet(project.GetRestoreStyleTag(), PackageReferenceValue) &&
!project.HasPackagesConfigFile();
}

public static string GetPackagesConfigPath(this IProject project)
{
return Path.Join(Path.GetDirectoryName(project.FullPath), PackagesConfigFileName);
return Path.Combine(Path.GetDirectoryName(project.FullPath) ?? string.Empty, PackagesConfigFileName);
}

private static bool HasPackagesConfigFile(this IProject project)
Expand Down
Loading

0 comments on commit 57276cd

Please sign in to comment.