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

Update framework refencing #10502

Merged
merged 1 commit into from
Nov 19, 2020
Merged

Conversation

KevinRansom
Copy link
Member

This modifies compilerassert setup.

  1. It moves the temp directory to artifacts/Temp this allows the global.json file to be used which gives more reliable framework references.
  2. Generates a Directory.Build.props file, which disables automagic compiler selection in the build. Again, it ensures more reliable selection of framework references.
  3. It dumps the build error and stdio tesxt to a file to improve diagnostics.

@@ -127,20 +137,23 @@ let main argv = 0"""
let mutable output = ""
let mutable errors = ""
let mutable cleanUp = true
let projectDirectory = Path.Combine(Path.GetTempPath(), "CompilerAssert", Path.GetRandomFileName())
let pathToTemp = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "../../../../Temp"))
Copy link
Member

Choose a reason for hiding this comment

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

Why not resolve %TEMP%?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not at all, I want us to pick up the global.json in the repo. %temp% is in the user directory, and so is nowhere near the repo


<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
</Project>
"""
Copy link
Member

Choose a reason for hiding this comment

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

Are you trying to prevent all directory crawling? If so, this file should just be an empty <Project /> element and a similarly emtpy Directory.Build.targets should be present, too.

Copy link
Member

@vzarytovskii vzarytovskii left a comment

Choose a reason for hiding this comment

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

That's actually good. Easier to clean up and find generated stuff if you need to debug. Thanks, Kevin.

@vzarytovskii vzarytovskii merged commit 52c6e6d into dotnet:main Nov 19, 2020
KevinRansom added a commit to KevinRansom/fsharp that referenced this pull request Dec 3, 2020
KevinRansom added a commit to KevinRansom/fsharp that referenced this pull request Dec 3, 2020
KevinRansom added a commit that referenced this pull request Dec 4, 2020
* add check for system assemblies completion

* add check for system assemblies completion

* add check for system assemblies completion

* merge issues

* add FCS release definition links

* Fix FSC nuget package dependencies.  Use FSharp.Org tool Icon as package icon. (#10588)

* src/fsharp/DotNetFrameworkDependencies.fs

* System.Config

* version

* Update bframework refencing (#10502)

* Fix release notes link

* temp (#10506)

Co-authored-by: Don Syme <donsyme@fastmail.com>
Co-authored-by: Brett V. Forsgren <brettfo@microsoft.com>
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
* add check for system assemblies completion

* add check for system assemblies completion

* add check for system assemblies completion

* merge issues

* add FCS release definition links

* Fix FSC nuget package dependencies.  Use FSharp.Org tool Icon as package icon. (dotnet#10588)

* src/fsharp/DotNetFrameworkDependencies.fs

* System.Config

* version

* Update bframework refencing (dotnet#10502)

* Fix release notes link

* temp (dotnet#10506)

Co-authored-by: Don Syme <donsyme@fastmail.com>
Co-authored-by: Brett V. Forsgren <brettfo@microsoft.com>
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.

3 participants