-
Notifications
You must be signed in to change notification settings - Fork 558
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
Add CoreWCF Services Support #5473
base: main
Are you sure you want to change the base?
Changes from 8 commits
05e132e
ee19932
dd2e1d2
874a0d0
bae0e73
1e3d9ee
274dc78
bed6fac
0d64f62
a5b1c1c
b9c1979
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<clear /> | ||
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" /> | ||
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" /> | ||
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" /> | ||
<add key="nuget" value="https://api.nuget.org/v3/index.json" /> | ||
<add key="CoreWCF_Dev" value="https://pkgs.dev.azure.com/dotnet/CoreWCF/_packaging/CoreWCF/nuget/v3/index.json" /> | ||
</packageSources> | ||
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. Couldn't we just use the latest CoreWCF package for this? Or perhaps this should be added to the dotnet-public? |
||
<disabledPackageSources /> | ||
</configuration> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,34 @@ | ||
<Project Sdk="Microsoft.DotNet.Helix.Sdk" DefaultTargets="Test"> | ||
<Project Sdk="Microsoft.DotNet.Helix.Sdk" InitialTargets="InstallDotNet;Test"> | ||
<PropertyGroup> | ||
<HelixSource Condition=" '$(RunAsPublic)' == 'true' ">pr/dotnet/wcf/$(BUILD_SOURCEBRANCH)/</HelixSource> | ||
<HelixSource Condition=" '$(RunAsInternal)' == 'true' ">official/dotnet/wcf/$(BUILD_SOURCEBRANCH)/</HelixSource> | ||
<HelixType>test/product/</HelixType> | ||
<HelixBuild>$(BUILD_BUILDNUMBER)</HelixBuild> | ||
<HelixBuild Condition="'$(HelixBuild)' == ''">123460.01</HelixBuild> | ||
<DotNetCliPackageType>sdk</DotNetCliPackageType> | ||
<DotNetCliVersion>8.0.100</DotNetCliVersion> | ||
<IncludeDotNetCli>true</IncludeDotNetCli> | ||
|
||
<!-- Read global.json so we know the version of the dotnet cli we need --> | ||
<GlobalJsonContent>$([System.IO.File]::ReadAllText('$(RepoRoot)global.json'))</GlobalJsonContent> | ||
<DotNetCliPackageType>sdk</DotNetCliPackageType> | ||
<DotNetCliVersion>$([System.Text.RegularExpressions.Regex]::Match($(GlobalJsonContent), '(%3F<="dotnet": ").*(%3F=")'))</DotNetCliVersion> | ||
|
||
<IncludeDotNetCli>true</IncludeDotNetCli> | ||
<EnableAzurePipelinesReporter>true</EnableAzurePipelinesReporter> | ||
<TestRunNamePrefix>$(AGENT_JOBNAME)</TestRunNamePrefix> | ||
|
||
<EnableXUnitReporter>true</EnableXUnitReporter> | ||
</PropertyGroup> | ||
|
||
<Target Name="InstallDotNet"> | ||
<ItemGroup> | ||
<AdditionalDotNetPackage Include="8.0.5"> | ||
<PackageType>aspnetcore-runtime</PackageType> | ||
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. This seems to be downgrade; can we use what is available provided by arcade? |
||
<Channel>Current</Channel> | ||
</AdditionalDotNetPackage> | ||
</ItemGroup> | ||
</Target> | ||
|
||
<ItemGroup> | ||
<ProjectsToBuild Include="..\src\System.Private.ServiceModel\tools\SelfHostedCoreWcfService\SelfHostedCoreWCFService.csproj"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<XUnitProject Include="..\src\System.Private.ServiceModel\tests\Scenarios\**\*.IntegrationTests.csproj"> | ||
|
@@ -54,19 +69,48 @@ | |
<Creator>$(BUILD_SOURCEVERSIONAUTHOR)</Creator> | ||
<Creator Condition=" '$(Creator)' == ''">anon</Creator> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<RunWithCoreWCFService Condition="'$(RunWithCoreWCFService)' == ''">false</RunWithCoreWCFService> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="!$(HelixTargetQueue.StartsWith('Windows'))"> | ||
<PropertyGroup Condition="'$(TestJob)' != 'Windows'" > | ||
<HelixPreCommands>$(HelixPreCommands);chmod a+x $HELIX_CORRELATION_PAYLOAD/InstallRootCertificate.sh</HelixPreCommands> | ||
<HelixPreCommands>$(HelixPreCommands);sudo -E -n $HELIX_CORRELATION_PAYLOAD/InstallRootCertificate.sh --service-host $(ServiceHost) --cert-file /tmp/wcfrootca.crt</HelixPreCommands> | ||
</PropertyGroup> | ||
|
||
<Target Name="Pack"/> | ||
<PropertyGroup Condition="'$(TestJob)' == 'Windows'"> | ||
<HelixPreCommands>$(HelixPreCommands);set PATH=%HELIX_CORRELATION_PAYLOAD%\dotnet-cli%3B%PATH%</HelixPreCommands> | ||
<!-- %3B is an escaped ; --> | ||
<HelixPreCommands>$(HelixPreCommands);set DOTNET_ROOT=%HELIX_CORRELATION_PAYLOAD%\dotnet-cli;set DOTNET_CLI_TELEMETRY_OPTOUT=1</HelixPreCommands> | ||
<HelixPreCommands>$(HelixPreCommands);set DOTNET_CLI_HOME=%HELIX_WORKITEM_ROOT%\.dotnet</HelixPreCommands> | ||
<HelixPreCommands>$(HelixPreCommands);set NUGET_PACKAGES=%HELIX_WORKITEM_ROOT%\.nuget</HelixPreCommands> | ||
<HelixPreCommands>$(HelixPreCommands);set ServiceUri=localhost</HelixPreCommands> | ||
<HelixPreCommands>$(HelixPreCommands);%HELIX_CORRELATION_PAYLOAD%\SelfHostedCoreWCFService\$(Configuration)\net8.0\SelfHostedCoreWCFService bootstrap:true</HelixPreCommands> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(TestJob)' != 'Windows'"> | ||
<HelixPreCommands>$(HelixPreCommands);export PATH=$HELIX_CORRELATION_PAYLOAD/dotnet-cli:$PATH</HelixPreCommands> | ||
<HelixPreCommands>$(HelixPreCommands);export DOTNET_ROOT=$HELIX_CORRELATION_PAYLOAD/dotnet-cli;export DOTNET_CLI_TELEMETRY_OPTOUT=1</HelixPreCommands> | ||
<HelixPreCommands>$(HelixPreCommands);export DOTNET_CLI_HOME=$HELIX_WORKITEM_ROOT/.dotnet</HelixPreCommands> | ||
<HelixPreCommands>$(HelixPreCommands);export NUGET_PACKAGES=$HELIX_WORKITEM_ROOT/.nuget</HelixPreCommands> | ||
<HelixPreCommands>$(HelixPreCommands);export ServiceUri=localhost</HelixPreCommands> | ||
<HelixPreCommands>$(HelixPreCommands);dotnet exec --roll-forward Major $HELIX_CORRELATION_PAYLOAD/SelfHostedCoreWCFService/$(Configuration)/net8.0/SelfHostedCoreWCFService.dll bootstrap:true</HelixPreCommands> | ||
</PropertyGroup> | ||
|
||
<Target Name="BuildProjects"> | ||
<MSBuild Targets="Publish" Projects="@(ProjectsToBuild)" Properties="PublishDir='$(MSBuildThisFileDirectory)\..\artifacts\bin\SelfHostedCoreWCFService'" /> | ||
</Target> | ||
|
||
<ItemGroup> | ||
<!-- Directory that is zipped up and sent as a correlation payload to Helix --> | ||
<HelixCorrelationPayload Include="$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)\..\src\System.Private.ServiceModel\tools\scripts'))" > | ||
<PayloadDirectory>%(Identity)</PayloadDirectory> | ||
</HelixCorrelationPayload> | ||
|
||
<HelixCorrelationPayload Include="$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)\..\artifacts\bin\SelfHostedCoreWCFService'))" > | ||
<Destination>SelfHostedCoreWCFService</Destination> | ||
</HelixCorrelationPayload> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I remember this correctly, this is not allowed, We should achieve this through dotnet-public.