Skip to content

Commit b0d320b

Browse files
committed
Revert PackageSourceGenerator changes
1 parent dc62e8b commit b0d320b

File tree

2 files changed

+0
-87
lines changed

2 files changed

+0
-87
lines changed

src/packageSourceGenerator/PackageSourceGenerator.proj

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
GenerateReferencePackageSource;
8080
GenerateTextOnlyPackageSource;
8181
GeneratePackageProject;
82-
AddAttributes;
8382
RewriteNuspec;
8483
EndGeneratePackageSource;
8584
InvokePackageDependencies" />
@@ -286,27 +285,6 @@
286285
Importance="high" />
287286
</Target>
288287

289-
<!-- Add SBRP attribute to CSharp file and copy to target directory. -->
290-
<UsingTask TaskName="AddAttributes" AssemblyFile="$(PackageSourceGeneratorTaskAssembly)" />
291-
<Target Name="AddAttributes"
292-
Condition="'@(PackageCompileItem)' != '' or '$(PackageType)' == 'text'">
293-
294-
<ItemGroup>
295-
<PackageCSharpFiles Include="$(PackageTargetDirectory)**/*.cs" />
296-
</ItemGroup>
297-
298-
<ItemGroup>
299-
<Attributes Include="[assembly: System.Reflection.AssemblyMetadata(&quot;source&quot;, &quot;source-build-reference-packages&quot;)]"/>
300-
</ItemGroup>
301-
302-
<AddAttributes CSharpPaths="@(PackageCSharpFiles)"
303-
Attributes="@(Attributes)"/>
304-
305-
<Message Text="$(MSBuildProjectName) -> @(PackageCSharpFiles)"
306-
Importance="high" />
307-
308-
</Target>
309-
310288
<!-- Rewrite nuspec and copy to target directory. -->
311289
<UsingTask TaskName="RewriteNuspec" AssemblyFile="$(PackageSourceGeneratorTaskAssembly)" />
312290
<Target Name="RewriteNuspec"

src/packageSourceGenerator/PackageSourceGeneratorTask/AddAttributes.cs

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)