Skip to content

Commit

Permalink
Convert Razor to use Reference (dotnet/aspnetcore#4954)
Browse files Browse the repository at this point in the history
Commit migrated from dotnet/aspnetcore@b079041488f0
  • Loading branch information
ajaybhargavb authored Dec 17, 2018
1 parent 5820cb3 commit 7a891e5
Show file tree
Hide file tree
Showing 1,705 changed files with 601 additions and 15,108 deletions.
40 changes: 0 additions & 40 deletions src/.gitignore

This file was deleted.

21 changes: 21 additions & 0 deletions src/CodeAnalysis.Razor/src/Microsoft.CodeAnalysis.Razor.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>Razor is a markup syntax for adding server-side logic to web pages. This package contains the Razor design-time infrastructure.</Description>
<TargetFrameworks>net46;netstandard2.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
<Reference Include="Microsoft.AspNetCore.Razor.Language" />
</ItemGroup>

<ItemGroup>
<Reference Include="Microsoft.CodeAnalysis.Common" />
<Reference Include="Microsoft.CodeAnalysis.CSharp" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net46' ">
<Reference Include="System.Runtime.InteropServices.RuntimeInformation" />
</ItemGroup>

</Project>
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
<DefaultItemExcludes>$(DefaultItemExcludes);TestFiles\**\*</DefaultItemExcludes>
<PreserveCompilationContext>true</PreserveCompilationContext>
</PropertyGroup>

<ItemGroup>
<EmbeddedResource Include="TestFiles\**\*" />
<None Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>

<ItemGroup>
<Reference Include="Microsoft.CodeAnalysis.Razor" />
<Reference Include="Microsoft.AspNetCore.Razor.Language" />
<Reference Include="Microsoft.AspNetCore.Razor.Runtime" />
<Reference Include="Microsoft.AspNetCore.Razor" />
<Reference Include="Microsoft.AspNetCore.Razor.Test.Common" />
</ItemGroup>

<ItemGroup>
<Reference Include="Microsoft.CodeAnalysis.CSharp" />
<Reference Include="Microsoft.Extensions.DependencyModel" />
</ItemGroup>

</Project>
26 changes: 0 additions & 26 deletions src/Directory.Build.props

This file was deleted.

7 changes: 0 additions & 7 deletions src/Directory.Build.targets

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@
<TargetFrameworks>net46;netstandard2.0</TargetFrameworks>
<PackageTags>$(PackageTags);aspnetcoremvc</PackageTags>
<EnableApiCheck>false</EnableApiCheck>
<IsImplementationProject>false</IsImplementationProject>
<IsProjectReferenceProvider>true</IsProjectReferenceProvider>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\Microsoft.AspNetCore.Razor.Language\CodeGeneration\CodeWriterExtensions.cs">
<Compile Include="..\..\Razor.Language\src\CodeGeneration\CodeWriterExtensions.cs">
<Link>Shared\CodeWriterExtensions.cs</Link>
</Compile>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="../Microsoft.AspNetCore.Razor.Language/Microsoft.AspNetCore.Razor.Language.csproj" />
<ProjectReference Include="../Microsoft.CodeAnalysis.Razor/Microsoft.CodeAnalysis.Razor.csproj" />
<Reference Include="Microsoft.AspNetCore.Razor.Language" />
<Reference Include="Microsoft.CodeAnalysis.Razor" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
<PreserveCompilationContext>true</PreserveCompilationContext>
<DefaultItemExcludes>$(DefaultItemExcludes);TestFiles\**</DefaultItemExcludes>
</PropertyGroup>

<ItemGroup>
<EmbeddedResource Include="TestFiles\**" />
<None Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>

<ItemGroup>
<Reference Include="Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X" />
<Reference Include="Microsoft.AspNetCore.Razor.Test.Common" />
<Reference Include="Microsoft.AspNetCore.Razor.Runtime" />
<Reference Include="Microsoft.CodeAnalysis.Razor" />
<Reference Include="Microsoft.CodeAnalysis.CSharp" />
<Reference Include="Microsoft.Extensions.DependencyModel" />
</ItemGroup>

<ItemGroup>
<!-- We need this to compile but don't want it referenced by the project. It is included dynamically in CodeGeneration tests. -->
<Reference Include="Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X" />

<!-- Due to how DependencyContext.Load handles our special MvcShim reference above we need to also reference the MvcShim's DiagnosticSource dependency -->
<Reference Include="System.Diagnostics.DiagnosticSource" />
</ItemGroup>

<ItemGroup>
<MvcShim Condition="$(TargetFramework) != ''" Include="..\..\test\testassets\Razor.Test.MvcShim.Version1_X\bin\$(Configuration)\$(TargetFramework)\Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X.deps.json" />
</ItemGroup>

<Target Name="CopyDepsFromShims" AfterTargets="Build">
<Copy SourceFiles="@(MvcShim)" DestinationFolder="$(OutputPath)" />
</Target>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<Compile Include="..\Microsoft.AspNetCore.Razor.Language\CodeGeneration\CodeWriterExtensions.cs">
<Compile Include="..\..\Razor.Language\src\CodeGeneration\CodeWriterExtensions.cs">
<Link>Shared\CodeWriterExtensions.cs</Link>
</Compile>
</ItemGroup>
Expand All @@ -18,8 +18,8 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="../Microsoft.AspNetCore.Razor.Language/Microsoft.AspNetCore.Razor.Language.csproj" />
<ProjectReference Include="../Microsoft.CodeAnalysis.Razor/Microsoft.CodeAnalysis.Razor.csproj" />
<Reference Include="Microsoft.AspNetCore.Razor.Language" />
<Reference Include="Microsoft.CodeAnalysis.Razor" />
</ItemGroup>

</Project>
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
<PreserveCompilationContext>true</PreserveCompilationContext>
<DefaultItemExcludes>$(DefaultItemExcludes);TestFiles\**</DefaultItemExcludes>
</PropertyGroup>

<ItemGroup>
<EmbeddedResource Include="TestFiles\**" />
<None Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>

<ItemGroup>
<Reference Include="Microsoft.AspNetCore.Mvc.Razor.Extensions" />
<Reference Include="Microsoft.AspNetCore.Razor.Test.Common" />
<Reference Include="Microsoft.AspNetCore.Razor.Runtime" />
<Reference Include="Microsoft.CodeAnalysis.Razor" />
<Reference Include="Microsoft.CodeAnalysis.CSharp" />
<Reference Include="Microsoft.Extensions.DependencyModel" />
</ItemGroup>

<ItemGroup>
<!-- We need this to compile but don't want it referenced by the project. It is included dynamically in CodeGeneration tests. -->
<Reference Include="Microsoft.AspNetCore.Razor.Test.MvcShim" />

<!-- Due to how DependencyContext.Load handles our special MvcShim reference above we need to also reference the MvcShim's DiagnosticSource dependency -->
<Reference Include="System.Diagnostics.DiagnosticSource" />
</ItemGroup>

<ItemGroup>
<MvcShim Condition="$(TargetFramework) != ''" Include="..\..\test\testassets\Razor.Test.MvcShim\bin\$(Configuration)\$(TargetFramework)\Microsoft.AspNetCore.Razor.Test.MvcShim.deps.json" />
</ItemGroup>

<Target Name="CopyDepsFromShims" AfterTargets="Build">
<Copy SourceFiles="@(MvcShim)" DestinationFolder="$(OutputPath)" />
</Target>
</Project>
File renamed without changes.
Loading

0 comments on commit 7a891e5

Please sign in to comment.