-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: default to filename as proj name for target (#227)
- Loading branch information
1 parent
73e62f8
commit 4863512
Showing
5 changed files
with
125 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...res/dotnetcore/dotnet_8_with_package_id_property/dotnet_8_with_package_id_property.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<Company>Snyk</Company> | ||
<PackageId>Snyk.Project.Name</PackageId> | ||
<Authors>Snyk</Authors> | ||
<Description>This is a description</Description> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="NUnit" Version="3.13.3" /> | ||
</ItemGroup> | ||
</Project> |
75 changes: 75 additions & 0 deletions
75
test/fixtures/dotnetcore/dotnet_8_with_package_id_property/expected_depgraph.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"depGraph": { | ||
"schemaVersion": "1.3.0", | ||
"pkgManager": { | ||
"name": "nuget" | ||
}, | ||
"pkgs": [ | ||
{ | ||
"id": "[email protected]", | ||
"info": { | ||
"name": "dotnet_8_with_package_id_property", | ||
"version": "1.0.0" | ||
} | ||
}, | ||
{ | ||
"id": "[email protected]", | ||
"info": { | ||
"name": "NUnit", | ||
"version": "3.13.3" | ||
} | ||
}, | ||
{ | ||
"id": "[email protected]", | ||
"info": { | ||
"name": "NETStandard.Library", | ||
"version": "2.0.0" | ||
} | ||
}, | ||
{ | ||
"id": "[email protected]", | ||
"info": { | ||
"name": "Microsoft.NETCore.Platforms", | ||
"version": "1.1.0" | ||
} | ||
} | ||
], | ||
"graph": { | ||
"rootNodeId": "root-node", | ||
"nodes": [ | ||
{ | ||
"nodeId": "root-node", | ||
"pkgId": "[email protected]", | ||
"deps": [ | ||
{ | ||
"nodeId": "[email protected]" | ||
} | ||
] | ||
}, | ||
{ | ||
"nodeId": "[email protected]", | ||
"pkgId": "[email protected]", | ||
"deps": [ | ||
{ | ||
"nodeId": "[email protected]" | ||
} | ||
] | ||
}, | ||
{ | ||
"nodeId": "[email protected]", | ||
"pkgId": "[email protected]", | ||
"deps": [ | ||
{ | ||
"nodeId": "[email protected]" | ||
} | ||
] | ||
}, | ||
{ | ||
"nodeId": "[email protected]", | ||
"pkgId": "[email protected]", | ||
"deps": [] | ||
} | ||
] | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
test/fixtures/dotnetcore/dotnet_8_with_package_id_property/program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System; | ||
class TestFixture { | ||
static public void Main(String[] args) | ||
{ | ||
var client = new System.Net.Http.HttpClient(); | ||
Console.WriteLine("Hello, World!"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters