Skip to content

Commit 7791803

Browse files
[Feature] Use machine nuget key (#85)
* [Feature] Use machine nuget key * tidy * fix build * tidy
1 parent d29ea0e commit 7791803

File tree

5 files changed

+24
-64
lines changed

5 files changed

+24
-64
lines changed

.vscode/tasks.json

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

GitVersion.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
next-version: 2.8.0
2+
branches: {}
3+
ignore:
4+
sha: []

Source/Machine.VSTestAdapter.Specs/Machine.VSTestAdapter.Specs.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,4 @@
1919
<ProjectReference Include="..\Machine.VSTestAdapter\Machine.VSTestAdapter.csproj" />
2020
<ProjectReference Include="..\SampleSpecs\SampleSpecs.csproj" />
2121
</ItemGroup>
22-
23-
<ItemGroup>
24-
<Folder Include="Properties\" />
25-
</ItemGroup>
2622
</Project>

Source/Machine.VSTestAdapter/Machine.VSTestAdapter.csproj

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,15 @@
2828

2929
<ItemGroup>
3030
<PackageReference Include="Mono.Cecil" Version="[0.10-*, 0.11)" />
31-
<PackageReference Include="Machine.Specifications" Version="[0.11.0, 1.0)">
32-
<PrivateAssets>All</PrivateAssets>
33-
<!-- Only a reference during build/dev time -->
34-
</PackageReference>
31+
<PackageReference Include="Machine.Specifications" Version="[0.11.0, 1.0)" PrivateAssets="All" />
3532
</ItemGroup>
3633

3734
<ItemGroup Condition="'$(TargetFramework)'==$(_TargetDotNetCore)">
38-
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="[15.0.0,16)">
39-
<PrivateAssets>All</PrivateAssets> <!-- Only a reference during build/dev time -->
40-
</PackageReference>
35+
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="[15.0.0,16)" PrivateAssets="All" />
4136
</ItemGroup>
4237

4338
<ItemGroup Condition="'$(TargetFramework)'=='$(_TargetDotNetFramework)'">
44-
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="[11.0.0,16.0.0)">
45-
<PrivateAssets>All</PrivateAssets> <!-- Only a reference during build/dev time -->
46-
</PackageReference>
39+
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="[11.0.0,16.0.0)" PrivateAssets="All" />
4740
</ItemGroup>
4841

4942
<ItemGroup>

appveyor.yml

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,34 @@
1-
environment:
2-
nuget_version: '2.8.0'
3-
assembly_version: '2.8.0'
4-
5-
version: '$(nuget_version)+{build}'
6-
7-
pull_requests:
8-
do_not_increment_build_number: true
1+
image: Visual Studio 2017
92

103
configuration: Release
11-
image: Visual Studio 2017
4+
5+
install:
6+
- choco install gitversion.portable -pre -y
127

138
dotnet_csproj:
149
patch: true
1510
file: '**\*.csproj'
16-
version: '$(nuget_version)'
17-
assembly_version: '$(assembly_version)'
11+
version: $(GitVersion_NuGetVersion)
12+
package_version: $(GitVersion_NuGetVersion)
13+
assembly_version: $(GitVersion_MajorMinorPatch)
14+
file_version: $(GitVersion_MajorMinorPatch)
15+
informational_version: $(GitVersion_MajorMinorPatch)
16+
17+
pull_requests:
18+
do_not_increment_build_number: true
1819

19-
before_build: dotnet restore
20+
before_build:
21+
- cmd: dotnet restore
22+
- ps: gitversion /l console /output buildserver
2023

2124
build:
2225
publish_nuget: true
23-
publish_nuget_symbols: true
24-
verbosity: minimal
2526

2627
test_script: dotnet test -c %CONFIGURATION% Source\Machine.VSTestAdapter.Specs
2728

2829
deploy:
29-
- provider: GitHub
30-
description: |
31-
* Fix for out ot memory exceptions and tests not showing up
32-
33-
on:
34-
appveyor_repo_tag: true
35-
36-
release: v$(nuget_version)
37-
auth_token:
38-
secure: VrF5TrpBRN0ims9nJC1LG32O6ga5hsRuGNSufEbatAiIWZ1z68iiCYKZtqnAaT9y
39-
4030
- provider: NuGet
4131
api_key:
42-
secure: R+qirYPrTX9IzJHpRLL6KAV1Lo+vlAnInf6ShiIB2rAGIP28ceJxRAh1jirHE/uD
32+
secure: TL0dRg5VvDEghNB05X4nTEOECXqoNiuhVIhCFYrFg3pcaK8jNybRuruK8+S8KdJN
4333
on:
44-
appveyor_repo_tag: true
34+
appveyor_repo_tag: true

0 commit comments

Comments
 (0)