-
Notifications
You must be signed in to change notification settings - Fork 349
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
Upgrade projects to SDK style #383
Upgrade projects to SDK style #383
Conversation
|
||
namespace FileHelpers.Tests | ||
{ | ||
public static class FileTest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class is to replace the T4 transforms. It's far from ideal, but was necessary to keep the PR file change low. This should be refactored to return strongly typed objects in the future and drop the use of dynamic
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how to fix this at the moment.
It seems the generated file is still around: GenerateTestData.autogen.cs I believe it is not of any use any more, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have seen that now there are 689 tests with .Net Framework. Before your change there were only 591 tests.
Do you know why that is?
Hi Robert Thank you for your pullrequest. Matthias |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately it does not work yet on my machine.
I get compilation errors, saying that global::System.Runtime.Versioning.TargetFrameworkAttribute is declared twice.
I will continue this week.
Matthias
@mcavigelli My guess is that you need to clear your |
After cleaning with git clean -dxf and the corrected framework it compiles within no time! Looking at the created artifacts by appveyor
|
This looks really like a lot of work you have done for the project! Thanks a lot Robert. |
Regarding the Examples project I am thinking how to rewrite / refactor it with standard means, |
@MarcosMeli Fixed all of the above. I modified the Appveyor script to use GitVersion which calculates the SemVer from the git repo tags. So that when you create a release in GitHub, the tag should build on Appveyor and will produce nuget packages that have the tag version. There's probably a way to do it using Appveyor itself, but I don't know Appveyor very well. |
This PR upgrades all the projects to use the newer csproj format.
Most of the changes are:
dotnet CLI
now.One caveat is that I've dropped out theAdded it back, though it doesn't really work, and didn't seem to work in the old version either.FileHelpers.Examples
project from the solution, otherwise the change count on this PR would skyrocket.