-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Do not include the shared framework in the packages #24816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,17 +11,26 @@ | |
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<!-- Set this to false because assemblies should not reference this assembly directly, (except for tests, of course). --> | ||
<IsProjectReferenceProvider>false</IsProjectReferenceProvider> | ||
|
||
<!-- | ||
This project compiles against Microsoft.AspNetCore.App from the SDK. | ||
This ensures that it's packaging output is correct and does not include local artifacts. | ||
--> | ||
<UseAspNetCoreSharedRuntime>true</UseAspNetCoreSharedRuntime> | ||
<DoNotApplyWorkaroundsToMicrosoftAspNetCoreApp>true</DoNotApplyWorkaroundsToMicrosoftAspNetCoreApp> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Reference Include="Microsoft.AspNetCore" /> | ||
<Reference Include="Microsoft.AspNetCore.Diagnostics" /> | ||
<Reference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" /> | ||
<Reference Include="Microsoft.AspNetCore.Components.Server" /> | ||
<Reference Include="Microsoft.AspNetCore.ResponseCompression" /> | ||
<FrameworkReference Include="Microsoft.AspNetCore.App" /> | ||
|
||
<ProjectReference | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: Might be worth a comment about ensuring the latest framework bits exist before resolving the framework ref. |
||
Include="$(RepoRoot)src\Framework\App.Runtime\src\Microsoft.AspNetCore.App.Runtime.csproj" | ||
PrivateAssets="All" | ||
ReferenceOutputAssembly="false" | ||
SkipGetTargetFrameworkProperties="true" /> | ||
|
||
<Reference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" /> | ||
<Compile Include="$(SharedSourceRoot)CommandLineUtils\**\*.cs" /> | ||
<Reference Include="Microsoft.Extensions.Hosting" /> | ||
</ItemGroup> | ||
|
||
<!-- Pack settings --> | ||
|
@@ -37,19 +46,5 @@ | |
<NuspecProperty Include="PackageThirdPartyNoticesFile=$(PackageThirdPartyNoticesFile)" /> | ||
</ItemGroup> | ||
|
||
<Target Name="_FixupRuntimeConfig" BeforeTargets="_GenerateRuntimeConfigurationFilesInputCache"> | ||
<ItemGroup> | ||
<_RuntimeFramework Include="@(RuntimeFramework)" /> | ||
<RuntimeFramework Remove="@(RuntimeFramework)" /> | ||
<RuntimeFramework Include="Microsoft.AspNetCore.App" FrameworkName="Microsoft.AspNetCore.App" Version="5.0.0-preview" /> | ||
</ItemGroup> | ||
</Target> | ||
|
||
<Target Name="_UndoRuntimeConfigWorkarounds" AfterTargets="GenerateBuildRuntimeConfigurationFiles"> | ||
<ItemGroup> | ||
<RuntimeFramework Remove="@(RuntimeFramework)" /> | ||
<RuntimeFramework Include="@(_RuntimeFramework)" /> | ||
</ItemGroup> | ||
</Target> | ||
|
||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,13 +12,18 @@ | |
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Reference Include="Microsoft.AspNetCore" /> | ||
<Reference Include="Microsoft.AspNetCore.Cors" /> | ||
<Reference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" /> | ||
<Reference Include="Selenium.Support" /> | ||
<Reference Include="Selenium.WebDriver" /> | ||
<ProjectReference Include="..\..\..\WebAssembly\DevServer\src\Microsoft.AspNetCore.Components.WebAssembly.DevServer.csproj" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just curious: Why compile in these files instead of referencing the project❔ Should the files be moved into a Shared directory❔ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm also curious about that :) My guess is it's something nonobvious about having to run it inside docker. Perhaps @pranavkm can clarify. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I completely lost track of this PR. The M.AspNetCore.App reference in the DevServer project is viral, any project that references it also needs to be able to resolve that reference. Compiling the relevant types by source avoids any further hacks. |
||
<ProjectReference Include="..\TestApp\Wasm.Performance.TestApp.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\..\..\WebAssembly\DevServer\src\Server\*.cs" /> | ||
</ItemGroup> | ||
|
||
<Target Name="_AddTestProjectMetadataAttributes" BeforeTargets="BeforeCompile"> | ||
<ItemGroup> | ||
<AssemblyAttribute | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<DotNetCliTool Version="1"> | ||
<Commands> | ||
<Command Name="dotnet-watch" EntryPoint="dotnet-watch.dll" Runner="dotnet" /> | ||
</Commands> | ||
</DotNetCliTool> | ||
pranavkm marked this conversation as resolved.
Show resolved
Hide resolved
|
Uh oh!
There was an error while loading. Please reload this page.