diff --git a/sdk/keyvault/samples/sharelink/README.md b/sdk/keyvault/samples/sharelink/README.md index 1ff715202b5c7..4315f3407f688 100644 --- a/sdk/keyvault/samples/sharelink/README.md +++ b/sdk/keyvault/samples/sharelink/README.md @@ -14,42 +14,8 @@ extendedZipContent: target: /nuget.config # Shared -- path: /sdk/core/Azure.Core/src/Shared/AppContextSwitchHelper.cs - target: /Shared/Core/AppContextSwitchHelper.cs -- path: /sdk/core/Azure.Core/src/Shared/Argument.cs - target: /Shared/Core/Argument.cs -- path: /sdk/core/Azure.Core/src/Shared/AsyncLockWithValue.cs - target: /Shared/Core/AsyncLockWithValue.cs - path: /sdk/core/Azure.Core/src/Shared/AuthorizationChallengeParser.cs target: /Shared/Core/AuthorizationChallengeParser.cs -- path: /sdk/core/Azure.Core/src/Shared/ClientDiagnostics.cs - target: /Shared/Core/ClientDiagnostics.cs -- path: /sdk/core/Azure.Core/src/Shared/ConstantDelayStrategy.cs - target: /Shared/Core/ConstantDelayStrategy.cs -- path: /sdk/core/Azure.Core/src/Shared/ContentTypeUtilities.cs - target: /Shared/Core/ContentTypeUtilities.cs -- path: /sdk/core/Azure.Core/src/Shared/DelayStrategyInternal.cs - target: /Shared/Core/DelayStrategyInternal.cs -- path: /sdk/core/Azure.Core/src/Shared/DiagnosticScope.cs - target: /Shared/Core/DiagnosticScope.cs -- path: /sdk/core/Azure.Core/src/Shared/DiagnosticScopeFactory.cs - target: /Shared/Core/DiagnosticScopeFactory.cs -- path: /sdk/core/Azure.Core/src/Shared/HttpMessageSanitizer.cs - target: /Shared/Core/HttpMessageSanitizer.cs -- path: /sdk/core/Azure.Core/src/Shared/OperationInternal.cs - target: /Shared/Core/OperationInternal.cs -- path: /sdk/core/Azure.Core/src/Shared/OperationInternalBase.cs - target: /Shared/Core/OperationInternalBase.cs -- path: /sdk/core/Azure.Core/src/Shared/OperationInternalOfT.cs - target: /Shared/Core/OperationInternalOfT.cs -- path: /sdk/core/Azure.Core/src/Shared/OperationPoller.cs - target: /Shared/Core/OperationPoller.cs -- path: /sdk/core/Azure.Core/src/Shared/RetryAfterDelayStrategy.cs - target: /Shared/Core/RetryAfterDelayStrategy.cs -- path: /sdk/core/Azure.Core/src/Shared/TaskExtensions.cs - target: /Shared/Core/TaskExtensions.cs -- path: /sdk/core/Azure.Core/src/Shared/VoidValue.cs - target: /Shared/Core/VoidValue.cs - path: /sdk/keyvault/Azure.Security.KeyVault.Shared/src/ChallengeBasedAuthenticationPolicy.cs target: /Shared/KeyVault/ChallengeBasedAuthenticationPolicy.cs --- @@ -119,10 +85,11 @@ dotnet build /t:CopySource /p:Destination= The sample project file and _Program.cs_ are not copied automatically. Only the source necessary to build the REST client is copied. You are welcome to copy and modify the rest of the sample source as needed. -You also need to add a reference to Azure.Core in your project. In your project directory where you just copied source run: +You also need to add references to Azure.Core and Microsoft.Azure.AutoRest.CSharp in your project. In your project directory where you just copied source run: ```dotnetcli dotnet add package Azure.Core +dotnet add package Microsoft.Azure.AutoRest.CSharp --prerelease ``` ## Using the sample diff --git a/sdk/keyvault/samples/sharelink/ShareLink.csproj b/sdk/keyvault/samples/sharelink/ShareLink.csproj index 382683307cc41..8f9c943244006 100644 --- a/sdk/keyvault/samples/sharelink/ShareLink.csproj +++ b/sdk/keyvault/samples/sharelink/ShareLink.csproj @@ -30,7 +30,7 @@ - + @@ -38,13 +38,12 @@ - - - - + + + @@ -52,7 +51,7 @@ - <_Source Include="@(Compile->HasMetadata('Link'))" /> + <_Source Include="@(Compile->HasMetadata('Link'));@(None->HasMetadata('Link'))" /> <_Source Include="@(Compile)" Exclude="Program.cs" Condition="@(Compile->'%(Link)') == ''"> %(RecursiveDir)\%(Filename)%(Extension)