-
Notifications
You must be signed in to change notification settings - Fork 519
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
Breaking visual basic projects on paket update #1226
Comments
|
@theggelund in #1219 you said the targets should be last stuff in the proj files. seems that#s not correct. what should we do? |
|
The statement that was moved was not part of any nuget package. Can we exclude those and not move them? |
|
we probably can. |
|
do you have the csproj file for me before the change? |
|
@forki I said that targets that are included in a nuget package (build folder) should be put last, not all targets in a file. Ordering of stuff in msbuild files are important |
|
yes. the big question is how can we detect where we want to put our paket references and paket.targets |
|
I do, but since we use a lot of internal packages and code I'm not sure how much use they'll be. BEFORE_NE.SequenceManager.vbproj.txt The AFTER project can be fixed solely by moving the Include line back above the references. |
|
Fix looks good - just moving the imports that are controlled by paket. |
|
I'm still trying to reproduce the error, but the latest version has a fix that might help. Could you please retry with latest paket? |
|
(and then it's time to cleanup that mess in that function ;-) ) |
|
Hmm, no, as of 2.25.3.0, it's now leaving the resource files in place, which I like, but the include is still being moved to the end. AFTER_2.25.3.0.NE.SequenceManager.vbproj.txt Looking at the code, I'm not sure why that is. I've tried this twice to make sure. |
|
And again, moving the include back to its original location (just under the resources, just before the references) works fine. |
|
ok. so it's a off by one issue ;-) |
|
so seems I was finally able to reproduce this in the integration tests. please retry. |
|
That's the one. Tried that and it works fine. Much cleaner and correct set of changes: AFTER_2.25.4.0.NE.SequenceManager.vbproj.txt Thank you very much for your work! |
|
Cool. Thanks for caring and reporting. |
Using paket v2.25.2.0
When upgrading a visual studio project, it moved an import statement to the end of the file:
When this import is after the Reference sections, the references are not loaded. As a result, all paket references are effectively removed from the build.
Moving this Import statement further up the file, before the references, fixed the project.
Fortunately, running update again does not appear to automatically break it again.
The move was part of a block move, where a bunch of included files were moved to the end of the file, along with this import statement.
The text was updated successfully, but these errors were encountered: