Skip to content
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

Use $(TargetFramework) in the SDK when only targeting a single TFM #258

Merged
merged 7 commits into from
Oct 12, 2016

Conversation

@eerhardt
Copy link
Member Author

/cc @dotnet/project-system @piotrpMSFT

@srivatsn
Copy link
Contributor

@mlorbetske @abpiskunov @phenning we should update all the web templates to use TargetFramework instead of TargetFrameworks as well if they have just one TF.

<FluentAssertionsVersion>4.0.0</FluentAssertionsVersion>
<FluentAssertionsJsonVersion>4.12.0</FluentAssertionsJsonVersion>
<NewtonsoftJsonVersion>9.0.1</NewtonsoftJsonVersion>
<DotNetCliUtilsVersion>1.0.0-preview2-003121</DotNetCliUtilsVersion>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: whitespace

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops.

@nguerrera
Copy link
Contributor

Is something setting Configuration env var in the SDK build too? I see we have SkipInvalidConfigurations in restore command and that's still just downgrading ~20 errors to warnings. I think that:

  1. we also need to force /p:_InvalidConfigurationWarning=false to eliminate the warnings.
  2. we should get the nuget restore target suppress these itself.

@nguerrera
Copy link
Contributor

I didn't update https://github.com/dotnet/sdk/tree/master/src/Templates/ProjectTemplates/CSharp/Web/EmptyWeb because of #210.

I think it's fine to update it to set single target framework after props since that was because of the nuget bug. We still need to verify if multiple targetframeworks works with web, but this doesn't impact the template any longer since templates are supposed to be single target framework now and with the nuget bug fixed, this can be done in the right place.

@eerhardt
Copy link
Member Author

Is something setting Configuration env var in the SDK build too?

We pass the Configuration into our call into MSBuild: https://github.com/dotnet/sdk/blob/master/build.ps1#L62

We need to fix the bug: #203

@nguerrera
Copy link
Contributor

We need to fix the bug: #203

Agreed. Until then and as long as we're having to work around it with /p:SkipInvalidConfigurations=true, can we also pass /p:_InvalidConfigurationWarning=false. Or can we not pass configuration to the restore invocations? I find it really distracting for every build to have a sea of yellow and more critically, it lets new warnings slip in unnoticed.

@nguerrera
Copy link
Contributor

:shipit:

@eerhardt eerhardt merged commit e9b807b into dotnet:master Oct 12, 2016
@eerhardt eerhardt deleted the UpdateCLIAndNuget branch October 12, 2016 22:18
mmitche pushed a commit to mmitche/sdk that referenced this pull request Jun 5, 2020
Adding support for PB_SignType and PB_SkipTests
GangWang01 pushed a commit to GangWang01/sdk that referenced this pull request Mar 20, 2023
This + retry seems to get uploads pretty reliable for ghcr.io and
azurecr.io, at least in my testing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants