Skip to content

Commit

Permalink
changed build to use Microsoft.NET.Sdk project system in VS 2017 (#294)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mozts2005 committed Aug 1, 2017
1 parent f342a4b commit 9491cd4
Show file tree
Hide file tree
Showing 78 changed files with 225 additions and 3,740 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,5 @@ FakesAssemblies/
# Visual Studio 6 workspace options file
*.opt
/src/ZendeskApi_v2_Package/lib
/docs/_site
/docs/Gemfile.lock
87 changes: 38 additions & 49 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,47 @@ skip_branch_with_pr: true

# Maximum number of concurrent jobs for the project
max_jobs: 1
image: Visual Studio 2017 Preview
pull_requests:
do_not_increment_build_number: true
configuration: Release
platform: Any CPU
nuget:
disable_publish_on_pr: true
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
before_build:
- dotnet restore .\src\ZendeskApi_v2.sln
build:
project: \src\ZendeskApi_v2.sln
verbosity: detailed
test:
assemblies: '.\test\**\bin\**\*test.dll'
artifacts:
- path: src\ZendeskApi_v2\bin\Release\ZendeskApi_v2.*.nupkg
name: Package
deploy:
- provider: Environment
name: Public Nuget
on:
branch: master
APPVEYOR_REPO_TAG: true
- provider: Environment
name: PreRelease Nuget Feed
on:
branch: master
APPVEYOR_REPO_TAG: false
notifications:
- provider: GitHubPullRequest
on_build_success: true
on_build_failure: true
on_build_status_changed: false

install:
- ps: >-
choco install gitversion.portable --no-progress -y
choco install gitversion.portable --pre --no-progress -y
$output = gitversion
Expand Down Expand Up @@ -36,51 +72,4 @@ install:
{
$env:Is_Prerelease = 'false'
}
Write-Host "Is the build Prerelease: " $env:Is_Prerelease
pull_requests:
do_not_increment_build_number: true
image: Visual Studio 2017 Preview
configuration: Release
platform: Any CPU
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: $(APPVEYOR_PATCHING_VERSION)
assembly_file_version: $(APPVEYOR_PATCHING_VERSION)
assembly_informational_version: $(APPVEYOR_PATCHING_VERSION)
nuget:
disable_publish_on_pr: true
before_build:
- ps: >-
cd C:\projects\zendeskapi-v2\src
nuget.exe restore
build:
project: C:\projects\zendeskapi-v2\src\ZendeskApi_v2_vs2013.sln
verbosity: minimal
#test: on
#test_script:
#- ps: nunit3-console C:\projects\zendeskapi-v2\src\Tests\bin\Release\Tests.dll --result=myresults.xml;format=AppVeyor --framework:net-4.5
test:
assemblies: '**\*tests.dll'
artifacts:
- path: '\src\ZendeskApi_v2_Package\*.nupkg'
name: Package
deploy:
- provider: Environment
name: Public Nuget
on:
branch: master
Is_Prerelease: false
- provider: Environment
name: PreRelease Nuget Feed
on:
branch: master
Is_Prerelease: true
notifications:
- provider: GitHubPullRequest
on_build_success: true
on_build_failure: true
on_build_status_changed: false
Write-Host "Is the build Prerelease: " $env:Is_Prerelease
3 changes: 3 additions & 0 deletions docs/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"

gem 'github-pages', group: :jekyll_plugins
Binary file added docs/favicon.ico
Binary file not shown.
6 changes: 3 additions & 3 deletions src/.nuget/NuGet.Config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
Binary file removed src/.nuget/NuGet.exe
Binary file not shown.
150 changes: 0 additions & 150 deletions src/.nuget/NuGet.targets

This file was deleted.

39 changes: 0 additions & 39 deletions src/Tests/Properties/AssemblyInfo.cs

This file was deleted.

Loading

0 comments on commit 9491cd4

Please sign in to comment.