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

.NET Core 3.0 #521

Merged
merged 13 commits into from
Jan 8, 2020
Merged

.NET Core 3.0 #521

merged 13 commits into from
Jan 8, 2020

Conversation

rmillikin
Copy link
Member

No description provided.

@rmillikin rmillikin changed the title Dot net core3 .NET Core 3.0 Oct 16, 2019
@rmillikin
Copy link
Member Author

this PR requires changes to appveyor scripts because the .net framework and .net core unit tests can't be run with the same commands. working on it...

@rmillikin
Copy link
Member Author

i got the unit tests to run in appveyor, so this is ready for review. there seems to be some issue getting the code coverage report to codecov but I'm not sure if it's a fluke or a problem with the appveyor script

@acesnik
Copy link
Collaborator

acesnik commented Oct 26, 2019

Messaged the CodeCov team about the issue in showing the report. I didn't see anybody getting the same issue on a quick Google search.

).ToList();
ProteinDbWriter.WriteFastaDatabase(variantProteins2.OfType<Protein>().ToList(), @"E:\ProjectsActive\Spritz\mmTesting\variantproteins.fasta", "|");
}
// this test references the class ProteinWithAppliedVariants which doesn't seem to exist?
Copy link
Collaborator

Choose a reason for hiding this comment

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

Weird. Yes, this test class is old and can be deleted.

ProteinWithAppliedVariants is just Protein with some additional info now.

Copy link
Contributor

Choose a reason for hiding this comment

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

please delete

<file src="ThermoRawFileReader\bin\Release\net471\ThermoRawFileReader.dll" target="lib\net471" />

<file src="mzLib.targets" target="build\net471" />
<file src="BayesianEstimation\bin\Release\netcoreapp3.0\BayesianEstimation.dll" target="lib\netcoreapp3.0" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you test packaging the nupkg and then using it in MetaMorpheus to check that it works?

Copy link
Member Author

Choose a reason for hiding this comment

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

yep! I had to make a .NET core 3 metamorpheus build, but all is OK. I'd like to test more on a Linux machine but that's not necessarily required to merge the PR. I just want to test getting computer diagnostic info on different operating systems.

acesnik
acesnik previously approved these changes Oct 26, 2019
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="AfterBuild">
<ItemGroup>
<MyPackageFiles Include="$(MSBuildProjectDirectory)\..\Packages\**\build\net471\UnmanagedThermoHelperLayer.dll"/>
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's nice to see we can get rid of this. It made the build more confusing.

@acesnik
Copy link
Collaborator

acesnik commented Oct 26, 2019

@rmillikin
Copy link
Member Author

I think the codecov thing has something to do with the .pdb files. By default, release builds don't create the full .pdb file, and the full .pdb file is necessary for codecov to function properly. This tag should cause the full .pdb to build:

<PropertyGroup Condition="'$(Configuration)'=='Release'">
    <DebugType>full</DebugType>
    <DebugSymbols>true</DebugSymbols>
</PropertyGroup>

The subsequent codecov command in the build script works on my local machine (meaning, codecov determines the code coverage from the OpenCover .xml) but it doesn't work on appveyor; not sure why.

leahvschaffer
leahvschaffer previously approved these changes Nov 20, 2019
trishorts
trishorts previously approved these changes Nov 21, 2019
/// <summary>
/// see https://github.com/NimaAra/Easy.Common/blob/master/Easy.Common/DiagnosticReport/DiagnosticReport.cs
/// </summary>
private static string AsBashCommand(string command)
Copy link
Contributor

Choose a reason for hiding this comment

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

pretty simple but would a unit test for this be good?

Copy link
Member Author

Choose a reason for hiding this comment

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

This function only gets run on OSX, so on other machines the unit test would fail (including on AppVeyor). It might work on Linux. I don't think it's easily unit-testable

Copy link
Collaborator

Choose a reason for hiding this comment

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

You could test that it fails if the environment is windows

@@ -50,7 +51,7 @@ public string Annotation
/// </summary>
public override string ToString()
{
Copy link
Contributor

Choose a reason for hiding this comment

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

could pass int into ToString(n=11) to adjust rounding. not vital

).ToList();
ProteinDbWriter.WriteFastaDatabase(variantProteins2.OfType<Protein>().ToList(), @"E:\ProjectsActive\Spritz\mmTesting\variantproteins.fasta", "|");
}
// this test references the class ProteinWithAppliedVariants which doesn't seem to exist?
Copy link
Contributor

Choose a reason for hiding this comment

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

please delete

@rmillikin rmillikin merged commit 904d582 into master Jan 8, 2020
@rmillikin rmillikin deleted the DotNetCore3 branch January 8, 2020 18:29
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.

4 participants