Skip to content

Newtonsoft n patwa 19 09 2024 #2

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

Open
wants to merge 200 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
200 commits
Select commit Hold shift + click to select a range
7e7c142
Upgrading Restsharp, changeing endpoints to v2, adding jobreport api
Sep 6, 2012
bb430a3
Whoops
Sep 6, 2012
f9e85b4
Cleanup and new jobsearch feature
Oct 10, 2012
ac24396
Published 1.1 to nuget
Oct 12, 2012
e979c10
Adding some oAuth support
Oct 17, 2012
4f837b1
Whoops Again
Oct 17, 2012
5ac8968
Fix broken unit test
Oct 18, 2012
68f9112
Added timeout to the wrapper
Oct 25, 2012
96f748e
Incriment version number to match nuget version number
Oct 25, 2012
349c966
Adding some error handling
Oct 26, 2012
77297e3
Yay error handling
Oct 26, 2012
9b39560
Finishing some more error handling
Oct 26, 2012
9be48bc
Actually set the timeout
Oct 26, 2012
020d097
Shoring up unit tests
Oct 27, 2012
215ae53
Remove dev key
Oct 28, 2012
541c1ec
Adding unit tests around serialization
Oct 29, 2012
d013777
Fixing application submit
Oct 29, 2012
02fae9e
Wow the application call was criminally incorrect
Oct 29, 2012
1f1fa38
Published 1.3 to NuGet
Oct 29, 2012
f54025a
Fixing description on nuget
Oct 29, 2012
11c510f
Adding ability to override Host header
Oct 29, 2012
bdce162
WTH gitignore
Oct 29, 2012
eab0660
Adding new CTOR
Oct 29, 2012
3cfb6e0
OK unit tests work (gitignore accidentlly ignore my test data)
Oct 29, 2012
eaa7138
Adding some primitive eventing
Oct 30, 2012
0925c14
Adding events,serialization and timeouts
Oct 31, 2012
ce2af01
Updated NuGet package
Oct 31, 2012
8465e91
Missed one event and allow subclasses access to events
Oct 31, 2012
df39d09
Allow subclasses to override secure
Nov 6, 2012
36e4c92
Better error handling
Nov 8, 2012
0a91223
Added CanBeQuickApplied.
lonekorean Nov 13, 2012
f18fa19
Merge pull request #1 from lonekorean/master
Nov 13, 2012
6bb8368
I hate VB, also my namespaces are dumb
Nov 14, 2012
1764bed
Fixing request stuff
Nov 15, 2012
5c8f654
Add new JobRecsWithUserPreferences API call
Nov 27, 2012
926a269
Merge pull request #2 from oochelz/master
Nov 27, 2012
5c294b2
ShowMoreFields=true on Job Recs
Nov 27, 2012
d74437d
Merge pull request #3 from oochelz/master
Nov 27, 2012
f0a75ae
Fixing Limit/SelectTop so they actually set PerPage.
lonekorean Dec 4, 2012
c183eb1
Merge pull request #4 from lonekorean/master
Dec 4, 2012
1a90527
Fix JobDID on rec calls. Add ONet to GetJob call.
Dec 4, 2012
b85d843
Merge pull request #5 from oochelz/master
Dec 4, 2012
aad432d
Add additional fields to JobSearchResult
Dec 4, 2012
bd06498
Add in SiteEntity to JobSearch
Dec 5, 2012
19f0fb8
Add WhereSiteEntity to the interface
Dec 5, 2012
373faf6
Merge pull request #6 from oochelz/master
Dec 5, 2012
a089c6a
Add CBApiExt as friend; remove HostSite from JobSearchResult
Dec 5, 2012
6159ce2
Merge pull request #7 from oochelz/master
Dec 5, 2012
e6c2c9a
updating .gitignore
tkling Dec 19, 2012
5bf0045
removing .suo file from tracking
tkling Dec 19, 2012
27b640a
updating RecommendJobResult model so that deserialization works again…
tkling Dec 19, 2012
d48184b
Merge pull request #8 from tkling/master
Dec 20, 2012
eae1fab
Actually use Employment Type
Jan 14, 2013
a9b5a6c
Merge pull request #9 from oochelz/master
Jan 15, 2013
f737afc
Adding ability to specify addn headers
Feb 18, 2013
5489062
Changing the order of BeforeRequest
Mar 7, 2013
756b84e
not the way I should commit, all at once
Mar 22, 2013
6c150fb
Merge pull request #10 from andrewvelezcb/master
Mar 25, 2013
4d9890f
adding the rest of pagination
Mar 29, 2013
d88a61d
Merge pull request #11 from andrewvelez/master
Mar 29, 2013
6bb7b58
default radius should be zero or not defined
Apr 16, 2013
3ce69e6
Merge pull request #13 from andrewvelez/master
Apr 22, 2013
203d942
pulling meta data node down into base
Apr 22, 2013
0c68bd0
Merge pull request #14 from andrewvelez/master
Apr 24, 2013
aafb50b
adding search locations
andrewvelez Apr 25, 2013
6a928c3
adding search locations
andrewvelez Apr 25, 2013
795affd
Merge pull request #15 from andrewvelez/SearchLocations
Apr 25, 2013
70f21b7
removing user file
andrewvelez May 2, 2013
ac407f5
adding posted within
andrewvelez May 2, 2013
528b941
fixing industries
andrewvelez May 2, 2013
1bb8222
fixing employment types
andrewvelez May 2, 2013
32d1553
Merge pull request #16 from andrewvelez/MissingParams
May 3, 2013
6574565
stop tracking suo file
andrewvelez May 9, 2013
d206826
Merge branch 'master' of https://github.com/usbsnowcrash/Careerbuilde…
andrewvelez May 9, 2013
a7db8df
adding more exclusion types
andrewvelez May 10, 2013
89d2f10
updating item
andrewvelez May 16, 2013
e8af28d
updating to not default to US
andrewvelez May 17, 2013
277c6a9
add support for changing search view
andrewvelez May 18, 2013
0c81671
fix search view bug
andrewvelez May 18, 2013
3032e1f
adding apply requirements to API wrapper
matticus1181 May 20, 2013
d94dd32
Merge pull request #18 from matticus1181/master
May 20, 2013
221628d
Add method to parse JSON response for error nodes
May 20, 2013
ecae53a
Merge pull request #19 from vpistelli/JsonResponseSupport
May 20, 2013
6d10505
Enabling package restore to the solution
May 21, 2013
adcd557
Merge pull request #20 from vpistelli/PackageRestoreFix
andrewvelez May 21, 2013
8e39b08
fixing two warnings, adding orderby
andrewvelez May 22, 2013
606c61f
Adding pay low/high to the actual Job search request
May 28, 2013
197265c
Merge pull request #21 from vpistelli/master
andrewvelez May 29, 2013
d5f5ef9
renaming distance
andrewvelez May 29, 2013
661f9b9
adding geo suggestions
andrewvelez Jun 10, 2013
219ad94
adding support for boolean operator
andrewvelez Jun 19, 2013
8f6bb82
add job branding icons
andrewvelez Jun 21, 2013
cfc1388
adding industry codes
andrewvelez Jun 24, 2013
e2d31e5
adding category code property
andrewvelez Jun 24, 2013
04cbd74
Fixing a request error parsing bug where if additional content type p…
cbshakumar Jul 3, 2013
5d52d3c
Merge pull request #22 from usbsnowcrash/JsonErrorParsingBugFix
andrewvelez Jul 3, 2013
ec7e3fe
fixing regex/null checking
andrewvelez Jul 3, 2013
024faa4
removign packages
andrewvelez Jul 5, 2013
4eca7a4
fixing package restore bug
andrewvelez Jul 5, 2013
5c91fc8
country code should be able to take in a string
andrewvelez Jul 5, 2013
81eb378
preparing nuget package for release
andrewvelez Jul 5, 2013
7b24059
Added SavedSearch/Create to the wrapper.
Jul 17, 2013
59dac7b
SavedSearchCreateTest files and found some bugs
Jul 17, 2013
5d77e2e
Initial adding RequestSavedSearchDelete
Jul 18, 2013
d528d1b
Initial add of SavedSearchDelete.
Jul 18, 2013
a0f5125
Added code for saved search delete.
Jul 18, 2013
2c21cb5
fixing host site parameter for job search api
andrewvelez Jul 19, 2013
192fdbd
still learning github completing wrapper stuff
Jul 22, 2013
56117a4
added return lines to two files to make github happy
Jul 22, 2013
d8f75de
trying to get this to work
Jul 22, 2013
f92acae
Merge branch 'master' of https://github.com/NicholasBusby/Careerbuild…
Jul 22, 2013
3437c9e
Im not sure
Jul 22, 2013
6949743
committing changes to get running, hopefully
Jul 22, 2013
cdfe032
maybe this will work
Jul 22, 2013
b24cec1
Merge pull request #28 from NicholasBusby/USBSnowCrash-master
Jul 22, 2013
a3cefce
found error in one of my models (SavedSearchCreate.cs)
Jul 22, 2013
4a723f1
Merge pull request #29 from NicholasBusby/master
Jul 22, 2013
446a126
trying to fix an error in my savedsearchcreate model
Jul 23, 2013
e2d89a8
Merge pull request #30 from NicholasBusby/master
Jul 23, 2013
85b03e1
making the Developer key set it self inside of the wrapper as asked t…
Jul 25, 2013
5629365
Merge pull request #31 from NicholasBusby/master
Jul 25, 2013
27cdbf7
Added SerializeAs attribute to class.
Jul 25, 2013
0e331c2
Copy always test xml files.
Jul 25, 2013
5292040
Changed list to use query string and not message body.
Jul 26, 2013
7fe78d4
Fixed AddParametersToRequest to add externaluserid
Jul 26, 2013
f8032de
Changed test to work with update to SavedSearchListRequest
Jul 26, 2013
2dc070d
Removing dead code.
Jul 26, 2013
9a3053e
Setting developer key before calling AddBody.
Jul 26, 2013
bf872c3
updating SavedSearchList to return a DID and Retrieve so it works cor…
Jul 29, 2013
654639a
found a misspelling and fixed it.
Jul 30, 2013
c70016a
Exposing CountryCode
Jul 31, 2013
b813060
Merge pull request #33 from seanlindo/master
andrewvelez Aug 1, 2013
dd4e885
test needed to be updated
andrewvelez Aug 1, 2013
c71af27
moving property into ext repo
andrewvelez Aug 5, 2013
2fc4a47
fixing saved search errors
andrewvelez Aug 14, 2013
5da053e
fixing saved search errors
andrewvelez Aug 14, 2013
4fea0f3
adding company collapse to wrapper
matticus1181 Aug 20, 2013
48cb359
Merge pull request #34 from matticus1181/master
Aug 22, 2013
67ee07a
Adding Anonymous Application to the wrapper
Sep 12, 2013
2c7fbe1
bumping version to release nuget pkg
andrewvelez Oct 15, 2013
fd19ad6
bumping version to release nuget pkg
andrewvelez Oct 15, 2013
606166a
adding a put request to the wrapper
Nov 11, 2013
21610c9
Adjust API wrapper to handle errors from WebApi
Nov 25, 2013
d4083a5
Merge pull request #36 from machinaMan223/master
Nov 25, 2013
d3ae90e
Added developer key as a parameter automatically added on the query s…
cbshakumar Nov 25, 2013
91ab9e6
new nuget file
andrewvelez Nov 25, 2013
d18a7b8
Added developerkey to the request header for post and put requests.
cbshakumar Nov 26, 2013
4dc1192
Merge pull request #38 from cbshakumar/APIDevKeyAddHeader
andrewvelez Dec 3, 2013
2a328eb
fixing robs nre
andrewvelez Dec 3, 2013
860c629
new custom apply type node
andrewvelez Dec 5, 2013
3ca3a84
upgrading nupkg
andrewvelez Feb 10, 2014
381ae97
adding new target sites
andrewvelez Mar 6, 2014
1abf112
adding new target sites
andrewvelez Mar 6, 2014
c1c7c12
adding the new saved searches (WEBAPI) to the wrapper
Mar 10, 2014
1a2310e
Updating date
Mar 23, 2014
43c7f10
adding group job search param
Mar 26, 2014
17cb413
Added Parameters to job search request
Mar 31, 2014
7eea242
Adding contribution rules
Apr 2, 2014
e82bcd6
Adds visitor ID to user recommendation api call and generic param obj…
julman Apr 17, 2014
92727ef
fix style issues
julman Apr 17, 2014
83d67af
Merge pull request #39 from usbsnowcrash/userRecsParams
Apr 17, 2014
3bc9f6a
testing
Apr 23, 2014
7a45d7c
Deleting useless file
Apr 23, 2014
003a8b8
add posted time to search response
julman Jun 2, 2014
09e1747
Education, Experience, and skills
Jun 17, 2014
d2434a1
Adds EducationCodes wrapper along with tests
dcrouch3 Nov 19, 2014
754e5f6
Merge pull request #42 from dcrouch3/master
Dec 2, 2014
c831b57
add json response wrapper and test
Jun 11, 2015
be2e641
Merge pull request #43 from justinrex/master
Jun 11, 2015
2f94f9e
add DisplayCity to Job Search Response
Aug 25, 2015
31be9b8
Merge pull request #44 from usbsnowcrash/display_city
Aug 26, 2015
748a3c5
adding some missing fields yo
Nov 3, 2015
3032e92
Merge pull request #45 from usbsnowcrash/recs-apply-reqs
Nov 3, 2015
59e636c
add streetAddress to jobsearch model
Nov 4, 2015
928ef1e
Merge pull request #46 from usbsnowcrash/street-address
Nov 4, 2015
0a9b0ac
Add ApplyLink api call
Apr 14, 2016
5f8e722
Adding ApllyLink tests
Apr 18, 2016
92aab5c
Fill in method description
Apr 19, 2016
90d6300
Defaulting properties to empty string instead of null.
Apr 19, 2016
8aa896d
Call out to ApplyLink API
Apr 19, 2016
26e5bda
Dynamically set all params and return Uri
Apr 19, 2016
6b2b5d4
Refactor ApplyLink
Apr 19, 2016
c47550b
Remove and Sort usings
Apr 19, 2016
208a5e0
Fix closing brace spacing
Apr 19, 2016
1535ab3
Cleanup
Apr 19, 2016
96b873f
Spacing cleanup
Apr 19, 2016
3f8e926
Merge pull request #47 from usbsnowcrash/Add_ApplyLink
Apr 20, 2016
c8d5f21
rearranging things
May 11, 2016
20f3c96
switching to nunit
May 11, 2016
18de595
Merge pull request #48 from usbsnowcrash/nunit-changes
May 11, 2016
c102594
make an easy way to add arbitrary values
May 23, 2016
a57185e
blah nuget blah
May 23, 2016
6d66925
Merge pull request #49 from usbsnowcrash/add-generic-where
May 23, 2016
82dd93a
3rd party DLL updates
william-boatin Mar 9, 2021
ae872aa
dll version correction
william-boatin Aug 4, 2021
9458911
formschema update
arorashivani-cbdr Aug 18, 2021
fc39e04
Merge pull request #1 from cbdr/application_form_update
william-boatin Aug 18, 2021
b4be4ed
Added support for TLS 2.1 etc
william-boatin Aug 25, 2021
eaa9ba5
bump version number
william-boatin Aug 25, 2021
a9bca6a
Newtonsoft dll version upgraded
Sep 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 108 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,108 @@
*resharper.user
[Dd]ebug/
[Rr]elease/
build/
[Bb]in/
[Oo]bj/
Source/TestResults/
*.sou
*.sln.cache
_ReSharper.*/
*.user
*.trx
[Tt]est[Dd]ata/
Thumbs.db
TestResults
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
[Bb]in/
[Oo]bj/

# mstest test results
TestResults

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results
[Dd]ebug/
[Rr]elease/
x64/
*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.log
*.vspscc
*.vssscc
.builds

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*

# NCrunch
*.ncrunch*
.*crunch*.local.xml

# Installshield output folder
[Ee]xpress

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish

# Publish Web Output
*.Publish.xml

# NuGet Packages Directory
packages

# Windows Azure Build Output
csx
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
[Bb]in
[Oo]bj
sql
TestResults
[Tt]est[Rr]esult*
*.Cache
ClientBin
[Ss]tyle[Cc]op.*
~$*
*.dbmdl
Generated_Code #added for RIA/Silverlight projects

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
12 changes: 12 additions & 0 deletions .nuget/NuGet.Config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="repositorypath" value="..\packages" />
</config>
<packageRestore>
<add key="enabled" value="True" />
</packageRestore>
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
</configuration>
Binary file added .nuget/NuGet.exe
Binary file not shown.
19 changes: 19 additions & 0 deletions .nuget/NuGet.msbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="default" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<AssemblyName>CBApi</AssemblyName>
<BaseDir>$(MSBuildProjectDirectory)\..\NuPKG</BaseDir>
<NuGetApp>NuGet.exe</NuGetApp>
</PropertyGroup>

<Target Name="default" DependsOnTargets="NuGetUpdate;NuGetPack;"/>

<Target Name="NuGetUpdate">
<Exec WorkingDirectory="$(BaseDir)" Command="$(NuGetApp) Update -self" />
</Target>

<Target Name="NuGetPack">
<Exec WorkingDirectory="$(BaseDir)" Command="$(NuGetApp) pack ..\$(AssemblyName)\$(AssemblyName).csproj -Verbosity detailed -Prop Configuration=Release" />
</Target>

</Project>
133 changes: 133 additions & 0 deletions .nuget/NuGet.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>

<!-- Enable the restore command to run before builds -->
<RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>

<!-- Property that enables building a package from a project -->
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>

<!-- Determines if package restore consent is required to restore packages -->
<RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">true</RequireRestoreConsent>

<!-- Download NuGet.exe if it does not already exist -->
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
</PropertyGroup>

<ItemGroup Condition=" '$(PackageSources)' == '' ">
<!-- Package sources used to restore packages. By default, registered sources under %APPDATA%\NuGet\NuGet.Config will be used -->
<!-- The official NuGet package source (https://nuget.org/api/v2/) will be excluded if package sources are specified and it does not appear in the list -->
<!--
<PackageSource Include="https://nuget.org/api/v2/" />
<PackageSource Include="https://my-nuget-source/nuget/" />
-->
</ItemGroup>

<PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
<!-- Windows specific commands -->
<NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
<PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
</PropertyGroup>

<PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
<!-- We need to launch nuget.exe with the mono command if we're not on windows -->
<NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
<PackagesConfig>packages.config</PackagesConfig>
</PropertyGroup>

<PropertyGroup>
<!-- NuGet command -->
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\NuGet.exe</NuGetExePath>
<PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>

<NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
<NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(NuGetExePath)</NuGetCommand>

<PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>

<RequireConsentSwitch Condition=" $(RequireRestoreConsent) == 'true' ">-RequireConsent</RequireConsentSwitch>
<NonInteractiveSwitch Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' ">-NonInteractive</NonInteractiveSwitch>

<!-- Commands -->
<RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(NonInteractiveSwitch) $(RequireConsentSwitch) -solutionDir "$(SolutionDir) " </RestoreCommand>
<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -Properties Configuration=$(Configuration) $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols</BuildCommand>

<!-- We need to ensure packages are restored prior to assembly resolve -->
<BuildDependsOn Condition="$(RestorePackages) == 'true'">
RestorePackages;
$(BuildDependsOn);
</BuildDependsOn>

<!-- Make the build depend on restore packages -->
<BuildDependsOn Condition="$(BuildPackage) == 'true'">
$(BuildDependsOn);
BuildPackage;
</BuildDependsOn>
</PropertyGroup>

<Target Name="CheckPrerequisites">
<!-- Raise an error if we're unable to locate nuget.exe -->
<Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
<!--
Take advantage of MsBuild's build dependency tracking to make sure that we only ever download nuget.exe once.
This effectively acts as a lock that makes sure that the download operation will only happen once and all
parallel builds will have to wait for it to complete.
-->
<MsBuild Targets="_DownloadNuGet" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT;DownloadNuGetExe=$(DownloadNuGetExe)" />
</Target>

<Target Name="_DownloadNuGet">
<DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
</Target>

<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(RestoreCommand)"
Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />

<Exec Command="$(RestoreCommand)"
LogStandardErrorAsError="true"
Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
</Target>

<Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(BuildCommand)"
Condition=" '$(OS)' != 'Windows_NT' " />

<Exec Command="$(BuildCommand)"
LogStandardErrorAsError="true"
Condition=" '$(OS)' == 'Windows_NT' " />
</Target>

<UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
<ParameterGroup>
<OutputFilename ParameterType="System.String" Required="true" />
</ParameterGroup>
<Task>
<Reference Include="System.Core" />
<Using Namespace="System" />
<Using Namespace="System.IO" />
<Using Namespace="System.Net" />
<Using Namespace="Microsoft.Build.Framework" />
<Using Namespace="Microsoft.Build.Utilities" />
<Code Type="Fragment" Language="cs">
<![CDATA[
try {
OutputFilename = Path.GetFullPath(OutputFilename);

Log.LogMessage("Downloading latest version of NuGet.exe...");
WebClient webClient = new WebClient();
webClient.DownloadFile("https://nuget.org/nuget.exe", OutputFilename);

return true;
}
catch (Exception ex) {
Log.LogErrorFromException(ex);
return false;
}
]]>
</Code>
</Task>
</UsingTask>
</Project>
18 changes: 18 additions & 0 deletions .nuget/README_NUGET_CONFIG
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Setting a machine specific 'repositoryPath' override may be considered harmful for
teams that collaborate on the same repository.

Ticketed Bugs:
http://nuget.codeplex.com/discussions/400870
http://nuget.codeplex.com/discussions/431666

NuGet supports a hierarchy of .Config files so that there may be different settings
between the repository folder, the team folder, and the developer's machine. The
one closest to the repository wins out. There is a bug with the implementation of
package restore when the 'repositoryPath' setting is overwritten. One developer may
set their "global packages" folder to be higher up in the directory tree. If the
package is lost and it needs to be "restored", the HintPath for references in the
project files will change. After that point, there will be a disconnect between
different developer's machines for the location of a project's dlls.

Until this bug is resolved, I am going to manually set the repositoryPath setting on
all the CB GitHub repos.
Loading