Skip to content

Commit 9491cd4

Browse files
committed
changed build to use Microsoft.NET.Sdk project system in VS 2017 (#294)
* change build to use Microsoft.NET.Sdk * fixing the build * More build work * More build fixes * one last build fix * fixing test script for build * fixing the test run * adding artifacts to build * One last fix for the build
1 parent f342a4b commit 9491cd4

File tree

78 files changed

+225
-3740
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+225
-3740
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,5 @@ FakesAssemblies/
209209
# Visual Studio 6 workspace options file
210210
*.opt
211211
/src/ZendeskApi_v2_Package/lib
212+
/docs/_site
213+
/docs/Gemfile.lock

appveyor.yml

Lines changed: 38 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,47 @@ skip_branch_with_pr: true
33

44
# Maximum number of concurrent jobs for the project
55
max_jobs: 1
6+
image: Visual Studio 2017 Preview
7+
pull_requests:
8+
do_not_increment_build_number: true
9+
configuration: Release
10+
platform: Any CPU
11+
nuget:
12+
disable_publish_on_pr: true
13+
# scripts that are called at very beginning, before repo cloning
14+
init:
15+
- git config --global core.autocrlf input
16+
before_build:
17+
- dotnet restore .\src\ZendeskApi_v2.sln
18+
build:
19+
project: \src\ZendeskApi_v2.sln
20+
verbosity: detailed
21+
test:
22+
assemblies: '.\test\**\bin\**\*test.dll'
23+
artifacts:
24+
- path: src\ZendeskApi_v2\bin\Release\ZendeskApi_v2.*.nupkg
25+
name: Package
26+
deploy:
27+
- provider: Environment
28+
name: Public Nuget
29+
on:
30+
branch: master
31+
APPVEYOR_REPO_TAG: true
32+
- provider: Environment
33+
name: PreRelease Nuget Feed
34+
on:
35+
branch: master
36+
APPVEYOR_REPO_TAG: false
37+
notifications:
38+
- provider: GitHubPullRequest
39+
on_build_success: true
40+
on_build_failure: true
41+
on_build_status_changed: false
642

743
install:
844
- ps: >-
945
10-
choco install gitversion.portable --no-progress -y
46+
choco install gitversion.portable --pre --no-progress -y
1147
1248
$output = gitversion
1349
@@ -36,51 +72,4 @@ install:
3672
{
3773
$env:Is_Prerelease = 'false'
3874
}
39-
40-
Write-Host "Is the build Prerelease: " $env:Is_Prerelease
41-
pull_requests:
42-
do_not_increment_build_number: true
43-
image: Visual Studio 2017 Preview
44-
configuration: Release
45-
platform: Any CPU
46-
assembly_info:
47-
patch: true
48-
file: '**\AssemblyInfo.*'
49-
assembly_version: $(APPVEYOR_PATCHING_VERSION)
50-
assembly_file_version: $(APPVEYOR_PATCHING_VERSION)
51-
assembly_informational_version: $(APPVEYOR_PATCHING_VERSION)
52-
nuget:
53-
disable_publish_on_pr: true
54-
before_build:
55-
- ps: >-
56-
57-
cd C:\projects\zendeskapi-v2\src
58-
59-
nuget.exe restore
60-
build:
61-
project: C:\projects\zendeskapi-v2\src\ZendeskApi_v2_vs2013.sln
62-
verbosity: minimal
63-
#test: on
64-
#test_script:
65-
#- ps: nunit3-console C:\projects\zendeskapi-v2\src\Tests\bin\Release\Tests.dll --result=myresults.xml;format=AppVeyor --framework:net-4.5
66-
test:
67-
assemblies: '**\*tests.dll'
68-
artifacts:
69-
- path: '\src\ZendeskApi_v2_Package\*.nupkg'
70-
name: Package
71-
deploy:
72-
- provider: Environment
73-
name: Public Nuget
74-
on:
75-
branch: master
76-
Is_Prerelease: false
77-
- provider: Environment
78-
name: PreRelease Nuget Feed
79-
on:
80-
branch: master
81-
Is_Prerelease: true
82-
notifications:
83-
- provider: GitHubPullRequest
84-
on_build_success: true
85-
on_build_failure: true
86-
on_build_status_changed: false
75+
Write-Host "Is the build Prerelease: " $env:Is_Prerelease

docs/Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gem 'github-pages', group: :jekyll_plugins

docs/favicon.ico

5.3 KB
Binary file not shown.

src/.nuget/NuGet.Config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
3-
<solution>
4-
<add key="disableSourceControlIntegration" value="true" />
5-
</solution>
3+
<packageSources>
4+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
5+
</packageSources>
66
</configuration>

src/.nuget/NuGet.exe

-4.38 MB
Binary file not shown.

src/.nuget/NuGet.targets

Lines changed: 0 additions & 150 deletions
This file was deleted.

src/Tests/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)