Skip to content

net461 and netstandard2.0 with working evaluation - #480

Merged
matthid merged 18 commits into
fsprojects:masterfrom
thinkbeforecoding:master
Oct 22, 2018
Merged

matthid merged 18 commits into
fsprojects:masterfrom
thinkbeforecoding:master

Conversation

@thinkbeforecoding

Copy link
Copy Markdown
Contributor

This version prepares FSharp.Literate to work on netstandard2.0 with evaluation to be used from netcoreapp projects.
The net461 version is still built with command line tools

@wallymathieu

Copy link
Copy Markdown
Member

Cool! I hope it goes well with the PR!

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

I have a problem with travis:

The current .NET SDK does not support targeting .NET Core 2.1. Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1.

Even if the .travis.yml specifies dotnet : 2.1.4

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

An appveyor is failing with an error that I managed to fix local by removing paket-files\paket.restore.cached and running paket restore again…
But there is probably a better way to not get this error.

@matthid

matthid commented Oct 14, 2018

Copy link
Copy Markdown
Member

An appveyor is failing with an error that I managed to fix local by removing paket-files\paket.restore.cached and running paket restore again…
But there is probably a better way to not get this error.

Add that file to gitignore and do not commit it.

Even if the .travis.yml specifies dotnet : 2.1.4

Try with latest 2.1.403 or something like that. If that doesn't work I'd assume something in the build still uses an older version.

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

The directory paket-file is already in .gitignore, is appveyor working on a clean directory when launching build, or does it live the directory as is between builds ?

@matthid

matthid commented Oct 14, 2018

Copy link
Copy Markdown
Member

appveyor should use a new machine every time (so it should be clean)

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

I'm making new attempts 👍

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

Now it's complaining about net461.
The build is working fine on windows, but on mono I get:

The reference assemblies for framework ".NETFramework,Version=v4.6.1" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.

@wallymathieu

Copy link
Copy Markdown
Member

Sometimes I've had some success with using what has been done in the type providers: Working on dotnet core on Mac OS X part 2

@matthid

matthid commented Oct 14, 2018

Copy link
Copy Markdown
Member

@thinkbeforecoding You might want to add the reference assembly nuget package nuget RoslynTools.ReferenceAssemblies which can be found in the feed source https://dotnet.myget.org/F/roslyn-tools/api/v3/index.json I have already added that for similar reasons to other repositories (like FAKE).

For this to work you need to edit/add a directory.props file: https://github.com/fsharp/FAKE/blob/694f616c97fa242162cfd36db905d7df3156018f/src/Directory.Build.props#L3

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

Trying this.

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

paket fails while trying to load roslyntools… any idea ?

@matthid

matthid commented Oct 14, 2018

Copy link
Copy Markdown
Member

@thinkbeforecoding did you add the source? It is sadly not available on official nuget

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

yes I added the source and paket install is working..
But paket restore takes ages and fails.

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

@matthid added the reference assemblies and the Directory.Build.props and it's still failing with the same error.

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

I think I had the relative path wrong. new try..

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

There is some progress, now I have a problem with app.config files in tests.

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

This error also occurs only in mono. I managed to reproduce it using WSL bash for windows, but still don't know why this happens .

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

The build passed on appveyor, but I could not find testresult.xml due to the fact that it's now using dotnet test and not nunit console runner.
have to see what I do with this...

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

I have a problem reproducing the build locally because from paris downloading oslynTools.ReferenceAssemblies takes 7min and timeouting 😢

@wallymathieu

Copy link
Copy Markdown
Member

Do you still need to keep app config around with the new style format?

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

Yes for the test project running in net461, they are needed for binding redirects.

When removed, a resolution of an FSharp.Core 4.1.0.0 is failing.

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

@wallymathieu the appveyor build is queued but doesn't seem to start...

@wallymathieu

Copy link
Copy Markdown
Member

It will probably queue up a new build once it gets available. I can imagine that fsprojects use quite a lot of appveyor resources.

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

It has been rather quick today, but there are probably changes on other repos as well...

@matthid matthid 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.

Some initial comments

Comment thread nuget/FSharp.Formatting.nuspec Resolved
@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

The build finally passed on appveyor

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

Anything more ?

@wallymathieu wallymathieu 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.

Looks good 👍

@wallymathieu

Copy link
Copy Markdown
Member

I'll wait on @matthid since this is such a big PR.

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

@matthid when do you think you'll have time for the review ? 😄 I can help if needed..

@matthid matthid 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.

Does this update the "publishing" logic in the fake script to push thr the new package?
Is the new package sent to the appveyor feed?

Comment thread appveyor.yml Resolved
Comment thread build.fsx Outdated
}
|> Process.withFramework
|> Process.setEnvironmentVariable "MSBuild" MSBuild.msBuildExe
// |> Process.setEnvironmentVariable "MSBuild" MSBuild.msBuildExe

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.

So we can remove this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes dotnet is already doing it properly

Comment thread build.fsx Outdated
)

Target.create"Release" Target.DoNothing
Target.create"Release" ignore

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.

Maybe we can add a space after create :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yup 😄

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

Done 👍

@matthid

matthid commented Oct 18, 2018

Copy link
Copy Markdown
Member

Overall looks good, but what about the publishing of the new nuget? did you add that code or did I just miss it?

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

I've not seen where it's done :grin

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

The nuget is created in the folder, but I've not seen where it's pushed to nuget.org ..

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

Ah ! Actually the nuget/publish.cmd published all the bin/*.nupkg so it's good 👍

Comment thread build.fsx Resolved

@matthid matthid 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.

Lets see what happens, thanks a lot!

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

great 😄

@matthid
matthid merged commit d8be726 into fsprojects:master Oct 22, 2018
@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

Thx !
Where are the nuget published ?

@wallymathieu

wallymathieu commented Oct 22, 2018 •

Copy link
Copy Markdown
Member

@thinkbeforecoding

Copy link
Copy Markdown
Contributor Author

Ok 👍🏻 👍🏻

@matthid matthid mentioned this pull request Apr 10, 2019
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