Skip to content

Commit

Permalink
Slim down publish output (#353)
Browse files Browse the repository at this point in the history
Addresses #352.
  • Loading branch information
johnstairs authored Mar 6, 2019
1 parent 9c6a507 commit 20a9824
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeCoverage" Version="15.9.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="NSubstitute" Version="4.0.0" />
<PackageReference Include="xunit" Version="2.4.1" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.2.0" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.2" />
<PackageReference Include="Microsoft.CodeCoverage" Version="15.9.0" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="2.2.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<PackageReference Include="FluentValidation" Version="8.0.101" />
<PackageReference Include="MediatR" Version="6.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.2" />
<PackageReference Include="Microsoft.CodeCoverage" Version="15.9.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.2.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<ItemGroup>
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="6.0.1" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.2" />
<PackageReference Include="Microsoft.CodeCoverage" Version="15.9.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.1-beta.61" />
Expand All @@ -27,7 +26,6 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="$(GeneratorProjectPath)" />
<ProjectReference Include="..\Microsoft.Health.Abstractions\Microsoft.Health.Abstractions.csproj" />
<ProjectReference Include="..\Microsoft.Health.CosmosDb\Microsoft.Health.CosmosDb.csproj" />
<ProjectReference Include="..\Microsoft.Health.Extensions.DependencyInjection\Microsoft.Health.Extensions.DependencyInjection.csproj" />
Expand All @@ -48,24 +46,22 @@
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
<Generated Include="Features/Storage/FhirDocumentClient.Generated.cs">
<Generator>FhirDocumentClientGenerator</Generator>
<Namespace>Microsoft.Health.Fhir.CosmosDb.Features.Storage</Namespace>
</Generated>
</ItemGroup>

<Target Name="GetGeneratorPath" BeforeTargets="GenerateFiles">
<PropertyGroup>
<GeneratorPath Condition="'%(OriginalItemSpec)' == '$(GeneratorProjectPath)'">@(_ResolvedProjectReferencePaths)</GeneratorPath>
</PropertyGroup>
</Target>
<Target Name="GenerateFiles" BeforeTargets="CoreCompile" Inputs="$(GeneratorPath)" Outputs="@(Generated)">
<Target Name="GenerateFiles" BeforeTargets="CoreCompile" Inputs="$(GeneratorProjectPath)" Outputs="@(Generated)">
<MSBuild Projects="$(GeneratorProjectPath)" Targets="Build">
<Output TaskParameter="TargetOutputs" ItemName="GeneratorPath" />
</MSBuild>
<ItemGroup>
<Compile Include="@(Generated)" Condition="!Exists('@(Generated)')" />
</ItemGroup>
<Exec Command="dotnet $(GeneratorPath) %(Generated.Generator) %(Generated.FullPath) %(Generated.Namespace)" />
<Exec Command="dotnet @(GeneratorPath) %(Generated.Generator) %(Generated.FullPath) %(Generated.Namespace)" />
</Target>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<PackageReference Include="Hl7.Fhir.STU3" Version="0.96.0" />
<PackageReference Include="MediatR" Version="6.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.2" />
<PackageReference Include="Microsoft.CodeCoverage" Version="15.9.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.1-beta.61" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.Azure.Services.AppAuthentication" Version="1.2.0-preview" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.2" />
<PackageReference Include="Microsoft.CodeCoverage" Version="15.9.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.AzureKeyVault" Version="2.2.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.1-beta.61" />
Expand Down

0 comments on commit 20a9824

Please sign in to comment.