Skip to content

Commit

Permalink
Remove runtime reference to System.Net.Http in favor of the NuGet pac…
Browse files Browse the repository at this point in the history
…kage

Once System.Net.Http is no longer a vulnerable transitive dependency, we can revert back to using a framework reference.
  • Loading branch information
Swimburger committed Nov 26, 2024
1 parent b50b2bf commit 4f034e0
Show file tree
Hide file tree
Showing 282 changed files with 1,402 additions and 1,967 deletions.
6 changes: 1 addition & 5 deletions generators/csharp/codegen/src/project/CsharpProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,10 +504,6 @@ class CsProj {
${projectGroup.join("\n")}
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
<Reference Include="System.Net.Http" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net462' Or '$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Portable.System.DateTimeOnly" Version="8.0.2" />
</ItemGroup>
Expand All @@ -533,7 +529,7 @@ ${this.getAdditionalItemGroups().join(`\n${FOUR_SPACES}`)}

private getDependencies(): string[] {
const result: string[] = [];
result.push("<PackageReference Include=\"PolySharp\" Version=\"1.15.0\">");
result.push('<PackageReference Include="PolySharp" Version="1.15.0">');
result.push(
`${FOUR_SPACES}<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>`
);
Expand Down
20 changes: 10 additions & 10 deletions seed/csharp-model/alias-extends/src/SeedAliasExtends.sln

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions seed/csharp-model/alias/src/SeedAlias.sln

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions seed/csharp-model/alias/src/SeedAlias/SeedAlias.csproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions seed/csharp-model/any-auth/src/SeedAnyAuth.sln

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions seed/csharp-model/any-auth/src/SeedAnyAuth/SeedAnyAuth.csproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions seed/csharp-model/api-wide-base-path/src/SeedApiWideBasePath.sln

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions seed/csharp-model/audiences/src/SeedAudiences.sln

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4f034e0

Please sign in to comment.