-
Notifications
You must be signed in to change notification settings - Fork 525
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
.props are imported too late #2227
Comments
Edit: I think 2 and 3 are moot, the comparison seems ok. This case could be fixed easily, FSharp.Compiler.Tools contains only a single .props directly in
Fixing framework-specific props is harder, nuget would import them at the top, but paket needs access to the msbuild variables, which are set later ...
|
fixes fsprojects#2227 * differentiate between global targets/props, and framework specific targets/props * fw-specifc targets/props continue to be imported in the the middle with a condition (no change to before) * global props are imported at the top of the file (same as nuget does) * global targets are imported at the end of the file (same as nuget) The reason is that many props depend on being imported at the top, so do that for the files where it is actually possible.
fixes fsprojects#2227 * differentiate between global targets/props, and framework specific targets/props * fw-specifc targets/props continue to be imported in the the middle with a condition (no change to before) * global props are imported at the top of the file (same as nuget does) * global targets are imported at the end of the file (same as nuget) The reason is that many props depend on being imported at the top, so do that for the files where it is actually possible.
fixes fsprojects#2227 * differentiate between global targets/props, and framework specific targets/props * fw-specifc targets/props continue to be imported in the the middle with a condition (no change to before) * global props are imported at the top of the file (same as nuget does) * global targets are imported at the end of the file (same as nuget) The reason is that many props depend on being imported at the top, so do that for the files where it is actually possible.
[fix #2227] import .props/.targets better
Description
I have installed FSharp.Compiler.Tools into my project.
Actual
My fsproj now looks like this:
Note how the import is after
<Import Project="$(FSharpTargetsPath)" />
, making this kind of useless.Expected
This is how the project looks like using nuget:
Note how the import is at the top.
Version
The text was updated successfully, but these errors were encountered: