Skip to content

Fix the build events property page and the targetframework dropdown in the application page - #3284

Merged
KevinRansom merged 2 commits into
dotnet:masterfrom
srivatsn:fsproppages
Jun 30, 2017
Merged

KevinRansom merged 2 commits into
dotnet:masterfrom
srivatsn:fsproppages

Conversation

@srivatsn

Copy link
Copy Markdown
Contributor

The target framework is populated by asking the multi-targeting service for the TFMs and the multi-targeting service doesn't know about .NET Core\Standard. We now also query a property that's set by the SDK that lists the known .NET Core.NET STandard version. This change is similar to the change to C#\VB pages

The build events prop page was failing to load because the RunPostBuildEvents property is not set normally and in that case, CPS returns an empty string whereas the old project system returned a specific missing value. This changes the page to handle both cases.

@KevinRansom @brettfo @Pilchie @dsyme

Fixes #3276, Fixes #3277

srivatsn added 2 commits June 29, 2017 12:04
…et the list of .NET Core\Standard frameworks from the SDK. This is similar to corresponding change for C#\VB - dotnet/project-system@aee40ba
… of the RunPostBuildEvent property when not set is an empty string in CPS whereas a missingvalue in the old project system. Handle both cases.
@msftclas

Copy link
Copy Markdown

@srivatsn,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@dsyme

dsyme commented Jun 29, 2017

Copy link
Copy Markdown
Contributor

@srivatsn I don't know what's up with that failed job, it looks sort of unrelated? The project system code shouldn't be loaded when building FSharp.Tests.FSharpSuite.DrivingCoreCLR


"D:\j\workspace\release_ci_pa---c6929ad7\build-everything.proj" (default target) (1) ->
"D:\j\workspace\release_ci_pa---c6929ad7\tests\fsharp\FSharp.Tests.FSharpSuite.DrivingCoreCLR\FSharp.Tests.FSharpSuite.DrivingCoreCLR.fsproj" (Build target) (41) ->
(dotnetpublishfsccompiler target) -> 
  EXEC : error : Unable to resolve 'runtime.osx.10.10-x64.runtime.native.System.Net.Security (>= 4.3.0)' for '.NETCoreApp,Version=v1.0 (osx.10.10-x64)'. [D:\j\workspace\release_ci_pa---c6929ad7\tests\fsharp\FSharp.Tests.FSharpSuite.DrivingCoreCLR\FSharp.Tests.FSharpSuite.DrivingCoreCLR.fsproj]
  EXEC : error : Unable to resolve 'runtime.ubuntu.14.04-x64.runtime.native.System.Net.Security (>= 4.3.0)' for '.NETCoreApp,Version=v1.0 (ubuntu.14.04-x64)'. [D:\j\workspace\release_ci_pa---c6929ad7\tests\fsharp\FSharp.Tests.FSharpSuite.DrivingCoreCLR\FSharp.Tests.FSharpSuite.DrivingCoreCLR.fsproj]
  D:\j\workspace\release_ci_pa---c6929ad7\src\FSharpSource.targets(284,5): error MSB3073: The command "D:\j\workspace\release_ci_pa---c6929ad7\src\..\Tools\dotnetcli\dotnet.exe restore DeployCompiler\fsc\project.json" exited with code 1. [D:\j\workspace\release_ci_pa---c6929ad7\tests\fsharp\FSharp.Tests.FSharpSuite.DrivingCoreCLR\FSharp.Tests.FSharpSuite.DrivingCoreCLR.fsproj]

@dsyme

dsyme commented Jun 29, 2017

Copy link
Copy Markdown
Contributor

@dotnet-bot test Windows_NT Release_ci_part3 Build please

@Pilchie Pilchie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @srivatsn!

@KevinRansom
KevinRansom merged commit a2ce228 into dotnet:master Jun 30, 2017
@Pilchie

Pilchie commented Jun 30, 2017

Copy link
Copy Markdown
Member

We'll need to cherry-pick this into the VS release branch, right?

@KevinRansom

Copy link
Copy Markdown
Contributor

Yes, there will likely be a couple more too.

@KevinRansom

Copy link
Copy Markdown
Contributor

@Pilchie @cartermp @brettfo We will need to cherry pick this.

@srivatsn
srivatsn deleted the fsproppages branch June 30, 2017 04:40
KevinRansom pushed a commit that referenced this pull request Jul 1, 2017
…n the application page (#3284)

* Make the target framework dropdown in the application property page get the list of .NET Core\Standard frameworks from the SDK. This is similar to corresponding change for C#\VB - dotnet/project-system@aee40ba

* Make the BuildEvents prop page work for CPS based projects. The value of the RunPostBuildEvent property when not set is an empty string in CPS whereas a missingvalue in the old project system. Handle both cases.
@KevinRansom

Copy link
Copy Markdown
Contributor

Tagging @MattGertz, @Pilchie for approval to insert to VS
Customer scenario:
This upgrades the F# pproject system to enable property pages for the F# project properties. It contains fixes that enable Property pages for dotnet SDK project to edit a number of properties that are not IDE editable without this change.
Workarounds, if any:
A developer can edit the project file to Manually set these values
**Performance impact : **
None
Root cause analysis : Not yet implemented. This is the first release to support dotnet sdk projects.
How was this bug found?: Adhoc 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.

5 participants