-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
56 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -286,3 +286,5 @@ __pycache__/ | |
*.btm.cs | ||
*.odx.cs | ||
*.xsd.cs | ||
|
||
*.binlog |
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
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,9 @@ | ||
<Project> | ||
|
||
<ItemDefinitionGroup> | ||
<InternalsAssemblyName> | ||
<Visible>false</Visible> | ||
</InternalsAssemblyName> | ||
</ItemDefinitionGroup> | ||
|
||
</Project> |
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 |
---|---|---|
@@ -1,27 +1,34 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<PropertyGroup> | ||
<_IACTG_TFM Condition="'$(MSBuildRuntimeType)' == 'Core'">netstandard2.0</_IACTG_TFM> | ||
<_IACTG_TFM Condition="'$(MSBuildRuntimeType)' != 'Core'">net46</_IACTG_TFM> | ||
<_IACTG_TaskAssembly>$(MSBuildThisFileDirectory)..\tools\$(_IACTG_TFM)\IgnoresAccessChecksToGenerator.Tasks.dll</_IACTG_TaskAssembly> | ||
<_IACTG_TargetFramework Condition="'$(MSBuildRuntimeType)' == 'Core'">netstandard2.0</_IACTG_TargetFramework> | ||
<_IACTG_TargetFramework Condition="'$(MSBuildRuntimeType)' != 'Core'">net46</_IACTG_TargetFramework> | ||
<_IACTG_TaskAssembly>$(MSBuildThisFileDirectory)..\tools\$(_IACTG_TargetFramework)\IgnoresAccessChecksToGenerator.Tasks.dll</_IACTG_TaskAssembly> | ||
<_IACTG_IntermediatePath>$(IntermediateOutputPath)/GeneratedPublicizedAssemblies</_IACTG_IntermediatePath> | ||
</PropertyGroup> | ||
|
||
<UsingTask AssemblyFile="$(_IACTG_TaskAssembly)" TaskName="IgnoresAccessChecksToGenerator.Tasks.PublicizeInternals" /> | ||
|
||
<Target Name="IgnoresAccessChecksToGenerator" AfterTargets="AfterResolveReferences"> | ||
<PublicizeInternals | ||
SourceReferences="@(ReferencePath)" | ||
AssemblyNames="$(InternalsAssemblyNames)" | ||
ExcludeTypeNames="$(InternalsAssemblyExcludeTypeNames)" | ||
UseEmptyMethodBodies="$(InternalsAssemblyUseEmptyMethodBodies)" | ||
IntermediateOutputDirectory="$(IntermediateOutputPath)"> | ||
<Output ItemName="ReferencePath" TaskParameter="TargetReferences" /> | ||
<ItemGroup> | ||
<InternalsAssemblyName Include="$(InternalsAssemblyNames.Split(;))" /> | ||
</ItemGroup> | ||
<PublicizeInternals SourceReferences="@(ReferencePath)" AssemblyNames="@(InternalsAssemblyName)" ExcludeTypeNames="$(InternalsAssemblyExcludeTypeNames)" UseEmptyMethodBodies="$(InternalsAssemblyUseEmptyMethodBodies)" IntermediateOutputPath="$(_IACTG_IntermediatePath)"> | ||
<Output ItemName="_IACTG_ReferencePath" TaskParameter="TargetReferences" /> | ||
<Output ItemName="_IACTG_RemovedReferences" TaskParameter="RemovedReferences" /> | ||
<Output ItemName="Compile" TaskParameter="GeneratedCodeFiles" /> | ||
</PublicizeInternals> | ||
<ItemGroup> | ||
<ReferencePath Include="@(_IACTG_ReferencePath)" /> | ||
<ReferencePath Remove="@(_IACTG_RemovedReferences)" /> | ||
</ItemGroup> | ||
</Target> | ||
|
||
<Target Name="IgnoresAccessChecksToGeneratorClean" AfterTargets="Clean"> | ||
<ItemGroup> | ||
<_IACTG_Directory Include="$(_IACTG_IntermediatePath)" /> | ||
</ItemGroup> | ||
<RemoveDir Directories="@(_IACTG_Directory)" /> | ||
</Target> | ||
|
||
</Project> |
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
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
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
8 changes: 6 additions & 2 deletions
8
test/IgnoresAccessChecksToGenerator.Test/IgnoresAccessChecksToGenerator.Test.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