-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathHowTo_Reference_ThermoRawFileReader_in_Visual_Studio.txt
52 lines (34 loc) · 2.12 KB
/
HowTo_Reference_ThermoRawFileReader_in_Visual_Studio.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
== Obtain the Newest .nupkg File ==
1) Build the project using Jenkins
http://proto-2.pnl.gov:8080/job/ThermoRawFileReader/
2) On the developer's computer, create directory C:\NuPkg
3) Copy the desired .nupkg file to that directory, for example:
Copy \\proto-2\CI_Publish\ThermoRawFileReader\ThermoRawFileReader.4.1.34.nupkg
to
C:\NuPkg\ThermoRawFileReader.4.1.34.nupkg
Note: The ThermoRawFileReader .nupkg file is stored as a private NuGet package on nuget.org
See https://prismwiki.pnl.gov/wiki/Appveyor#Referencing_a_Private_Nuget_Package_File
4) In Visual Studio, go to Tools->NuGet Package Manager->Package Manager Settings
5) Choose Package Sources
6) Click the green Plus sign to add a new source
7) Name it "Local Packages" and define the source as C:\NuPkg
8) Click Update
9) Click OK to close the dialog
== Referencing the ThermoFisher.CommonCore package files ==
1) Copy files from:
\\proto-2\CI_Publish\RawFileReader\Version_5_0_93\Repackage\ThermoFisher.CommonCore.BackgroundSubtraction.5.0.0.93.nupkg
\\proto-2\CI_Publish\RawFileReader\Version_5_0_93\Repackage\ThermoFisher.CommonCore.Data.5.0.0.93.nupkg
\\proto-2\CI_Publish\RawFileReader\Version_5_0_93\Repackage\ThermoFisher.CommonCore.MassPrecisionEstimator.5.0.0.93.nupkg
\\proto-2\CI_Publish\RawFileReader\Version_5_0_93\Repackage\ThermoFisher.CommonCore.RawFileReader.5.0.0.93.nupkg
to:
C:\NuPkg\ThermoFisher.CommonCore.BackgroundSubtraction.5.0.0.93.nupkg
C:\NuPkg\ThermoFisher.CommonCore.Data.5.0.0.93.nupkg
C:\NuPkg\ThermoFisher.CommonCore.MassPrecisionEstimator.5.0.0.93.nupkg
C:\NuPkg\ThermoFisher.CommonCore.RawFileReader.5.0.0.93.nupkg
2) Update the package references in file ThermoRawFileReader.csproj
== Add/update the .npkg File in a Solution
In the solution that you want to use this local package
1) Choose Tools->NuGet Package Manager->Manage Packages for Solution
2) Change the package source to Local Packages
3) The package reference must be stored in file packages.config (for early RawFileReader versions, probably before 5.0)
- It cannot be stored in the .csproj file