title: NU1100: Unable to resolve 'System.Reflection.TypeExtensions (>= 4.5.1)' for '.NETStandard,Version=v1.3'
body: <p>I'm trying <a href="https://github.com/jwt-dotnet/jwt/pull/198" rel="nofollow noreferrer">to migrate</a> my small OSS project from AppVeyor to Azure DevOps and got almost everything done but now <a href="https://abatishchev.visualstudio.com/Jwt.Net/_build/results?buildId=100" rel="nofollow noreferrer">getting this error</a> on the <code>dotnet restore</code> step:</p>
  
  <blockquote>
    <p>NU1100: Unable to resolve 'System.Reflection.TypeExtensions (>= 4.5.1)' for '.NETStandard,Version=v1.3'.</p>
  </blockquote>
  
  <p>Spite I clearly see that <a href="https://www.nuget.org/packages/System.Reflection.TypeExtensions/" rel="nofollow noreferrer">System.Reflection.TypeExtensions</a> supports .NET Standard 1.3:</p>
  
  <pre><code>.NETStandard 1.3
      System.Reflection (&gt;= 4.3.0)
      System.Resources.ResourceManager (&gt;= 4.3.0)
      System.Runtime (&gt;= 4.3.0)
  </code></pre>
  
  <p>What I'm doing wrong?</p>
  
  <p><strong>Update:</strong> <a href="https://github.com/glennawatson/jwt/edit/alex/vsts-2/.pipelines/build.yml?pr=%2Fjwt-dotnet%2Fjwt%2Fpull%2F198" rel="nofollow noreferrer">my YAML file</a> looks like this:</p>
  
  <pre><code>trigger:
  - master
  
  pool:
    vmImage: 'windows-2019'
  
  variables:
    solution: 'JWT.sln'
    buildConfiguration: 'Release'
    buildPlatform: 'Any CPU'
    dotNetVersion: '2.2.106'
  
  steps:
  - task: DotNetCoreInstaller@0
    displayName: Install .NET Core v$(dotNetVersion)
    inputs:
        version: $(dotNetVersion)
  
  - task: DotNetCoreCLI@2
    displayName: 'Restore NuGet packages'
    inputs:
      command: 'restore'
      projects: '**/*.csproj'
      feedsToUse: config
      nugetConfigPath: NuGet.config
  
  - task: DotNetCoreCLI@2
    displayName: 'Build solution'
    inputs:
      command: 'build'
      projects: '$(solution)'
      configuration: '$(buildConfiguration)'
  
  - task: DotNetCoreCLI@2
    displayName: Run .NET Core tests
    inputs:
      command: 'test'
      projects: 'tests/**/JWT.Tests.Core.csproj'
      arguments: ' -c $(buildConfiguration) --no-build --no-restore'
      testRunner: VSTest
      testResultsFiles: '**/*.trx'
      testResultsFormat: 'xUnit'
      failTaskOnFailedTests: true
  
  - task: DotNetCoreCLI@2
    displayName: Run .NET Framework tests
    inputs:
      command: 'test'
      projects: 'tests/**/JWT.Tests.NetFramework.csproj'
      arguments: ' -c $(buildConfiguration) --no-build --no-restore'
      testRunner: VSTest
      testResultsFiles: '**/*.trx'
      testResultsFormat: 'xUnit'
      failTaskOnFailedTests: true
  
  - task: DotNetCoreCLI@2
    displayName: Package NuGet package
    inputs:
      command: pack
      packagesToPack: 'src/**/*.csproj'
      configuration: $(BuildConfiguration)
      nobuild: true
  
  - task: PublishBuildArtifacts@1
    displayName: Publish build artifacts
  </code></pre>
  
  <p><strong>Update 2:</strong> I tried to restore packages for .NET Core and .NET Framework separately but it didn't work:</p>
  
  <pre><code>  displayName: 'Restore NuGet packages for .NET Core'
    inputs:
      command: 'restore'
      projects: '**/*.csproj'
      feedsToUse: config
      nugetConfigPath: NuGet.config
  
  - task: NuGetCommand@2
    displayName: 'Restore NuGet packages for .NET Framework'
    inputs:
      command: 'restore'
      restoreSolution: $(solution)
      feedsToUse: config
      nugetConfigPath: NuGet.config
  
  - task: DotNetCoreCLI@2
    displayName: 'Build solution'
    inputs:
      command: 'build'
      projects: '$(solution)'
      configuration: '$(buildConfiguration)'
  </code></pre>
  
  <p>What works though is raw MSBuild which restores packages explicitly:</p>
  
  <pre><code>- task: MSBuild@1
    displayName: Build solution
    inputs:
      solution: $(solution)   
      msbuildArguments: /restore /t:build /p:CreatePackage=true /p:NoPackageAnalysis=true /p:PackageOutputPath=$(Build.ArtifactStagingDirectory)\artifacts
      configuration: $(BuildConfiguration)
      maximumCpuCount: true
  </code></pre>