Skip to content

Commit b11ed03

Browse files
committed
first working NuGet package (#77)
1 parent 2f25825 commit b11ed03

14 files changed

+135
-4
lines changed
Loading

GoogleTestAdapter/VsPackage/VsPackage.csproj

+10
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@
133133
<None Include="source.extension.vsixmanifest">
134134
<SubType>Designer</SubType>
135135
</None>
136+
<None Include="VsPackage.nuspec">
137+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
138+
</None>
139+
<None Include="VsPackage.targets">
140+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
141+
</None>
136142
</ItemGroup>
137143
<ItemGroup>
138144
<BootstrapperPackage Include=".NETFramework,Version=v4.5">
@@ -251,6 +257,7 @@
251257
<IncludeInVSIX>true</IncludeInVSIX>
252258
</Content>
253259
<Content Include="Resources\gtest-logo.ico" />
260+
<Content Include="Resources\gtest-logo.png" />
254261
<Content Include="Resources\Preview.png">
255262
<IncludeInVSIX>true</IncludeInVSIX>
256263
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
@@ -320,4 +327,7 @@
320327
<Error Condition="!Exists('..\packages\Microsoft.VSSDK.BuildTools.14.3.25420\build\Microsoft.VSSDK.BuildTools.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.VSSDK.BuildTools.14.3.25420\build\Microsoft.VSSDK.BuildTools.targets'))" />
321328
</Target>
322329
<Import Project="..\packages\Microsoft.VSSDK.BuildTools.14.3.25420\build\Microsoft.VSSDK.BuildTools.targets" Condition="Exists('..\packages\Microsoft.VSSDK.BuildTools.14.3.25420\build\Microsoft.VSSDK.BuildTools.targets')" />
330+
<PropertyGroup>
331+
<PostBuildEvent>nuget pack VsPackage.nuspec</PostBuildEvent>
332+
</PropertyGroup>
323333
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package>
3+
<metadata minClientVersion="2.8">
4+
<id>GoogleTestAdapter</id>
5+
<version>0.7.1</version>
6+
<title>Google Test Adapter</title>
7+
<authors>Christian Soltenborn, Jonas Gefele</authors>
8+
<owners>Christian Soltenborn, Jonas Gefele</owners>
9+
<description>Visual studio extension that adds support for the C++ testing framework Google Test.</description>
10+
<language>en-US</language>
11+
<projectUrl>https://github.com/csoltenborn/GoogleTestAdapter</projectUrl>
12+
<iconUrl>https://raw.githubusercontent.com/csoltenborn/GoogleTestAdapter/master/GoogleTestAdapter/VsPackage/Resources/gtest-logo.png</iconUrl>
13+
<licenseUrl>https://raw.githubusercontent.com/csoltenborn/GoogleTestAdapter/master/LICENSE.md</licenseUrl>
14+
<requireLicenseAcceptance>true</requireLicenseAcceptance>
15+
<developmentDependency>true</developmentDependency>
16+
<copyright>Copyright 2015, 2016 Christian Soltenborn, Jonas Gefele</copyright>
17+
<tags>native gtest Google Test adapter C++ unit integration testing</tags>
18+
</metadata>
19+
<files>
20+
<file src="Microsoft.VisualStudio.TestPlatform.ObjectModel.dll" target="lib\native\" />
21+
<file src="Microsoft.VisualStudio.TestWindow.Interfaces.dll" target="lib\native\" />
22+
<file src="Microsoft.VisualStudio.TestWindow.dll" target="lib\native\" />
23+
<file src="CommonMark.dll" target="lib\native\" />
24+
25+
<file src="GoogleTestAdapter.Common.dll" target="lib\native\" />
26+
<file src="GoogleTestAdapter.Core.dll" target="lib\native\" />
27+
<file src="GoogleTestAdapter.DiaResolver.dll" target="lib\native\" />
28+
<file src="GoogleTestAdapter.TestAdapter.dll" target="lib\native\" />
29+
<file src="GoogleTestAdapter.VsPackage.dll" target="lib\native\" />
30+
31+
<file src="Resources\gtest-logo.gif" target="lib\native\Resources\" />
32+
<file src="Resources\Preview.png" target="lib\native\Resources\" />
33+
34+
<file src="VsPackage.targets" target="build\native\" />
35+
36+
<file src="LICENSE.txt" target="\" />
37+
</files>
38+
</package>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Condition="'$(Language)' == 'C++'">
4+
<Reference Include="CommonMark.dll">
5+
<HintPath>
6+
$(MSBuildThisFileDirectory)..\lib\native\CommonMark.dll
7+
</HintPath>
8+
</Reference>
9+
<Reference Include="GoogleTestAdapter.Common.dll">
10+
<HintPath>
11+
$(MSBuildThisFileDirectory)..\lib\native\GoogleTestAdapter.Common.dll
12+
</HintPath>
13+
</Reference>
14+
<Reference Include="GoogleTestAdapter.Core.dll">
15+
<HintPath>
16+
$(MSBuildThisFileDirectory)..\lib\native\GoogleTestAdapter.Core.dll
17+
</HintPath>
18+
</Reference>
19+
<Reference Include="GoogleTestAdapter.DiaResolver.dll">
20+
<HintPath>
21+
$(MSBuildThisFileDirectory)..\lib\native\GoogleTestAdapter.DiaResolver.dll
22+
</HintPath>
23+
</Reference>
24+
<Reference Include="GoogleTestAdapter.TestAdapter.dll">
25+
<HintPath>
26+
$(MSBuildThisFileDirectory)..\lib\native\GoogleTestAdapter.TestAdapter.dll
27+
</HintPath>
28+
</Reference>
29+
<Reference Include="GoogleTestAdapter.VsPackage.dll">
30+
<HintPath>
31+
$(MSBuildThisFileDirectory)..\lib\native\GoogleTestAdapter.VsPackage.dll
32+
</HintPath>
33+
</Reference>
34+
<Reference Include="Microsoft.VisualStudio.TestPlatform.ObjectModel.dll">
35+
<HintPath>
36+
$(MSBuildThisFileDirectory)..\lib\native\Microsoft.VisualStudio.TestPlatform.ObjectModel.dll
37+
</HintPath>
38+
</Reference>
39+
<Reference Include="Microsoft.VisualStudio.TestWindow.Interfaces.dll">
40+
<HintPath>
41+
$(MSBuildThisFileDirectory)..\lib\native\Microsoft.VisualStudio.TestWindow.Interfaces.dll
42+
</HintPath>
43+
</Reference>
44+
<Reference Include="Microsoft.VisualStudio.TestWindow.dll">
45+
<HintPath>
46+
$(MSBuildThisFileDirectory)..\lib\native\Microsoft.VisualStudio.TestWindow.dll
47+
</HintPath>
48+
</Reference>
49+
</ItemGroup>
50+
</Project>

SampleTests/.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
SampleTests.VC.db
2-
SampleTests.VC.VC.opendb
2+
SampleTests.VC.VC.opendb
3+
packages

SampleTests/CrashingTests/CrashingTests.vcxproj

+3
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@
166166
<Text Include="CrashReallyHard32.asm" />
167167
<MASM Include="CrashReallyHard64.asm" />
168168
</ItemGroup>
169+
<ItemGroup>
170+
<None Include="packages.config" />
171+
</ItemGroup>
169172
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
170173
<ImportGroup Label="ExtensionTargets">
171174
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets" />

SampleTests/CrashingTests/CrashingTests.vcxproj.filters

+8-3
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,16 @@
2323
</ClCompile>
2424
</ItemGroup>
2525
<ItemGroup>
26-
<Text Include="CrashReallyHard32.asm">
27-
<Filter>Source Files</Filter>
28-
</Text>
2926
<Text Include="CrashReallyHard64.asm">
3027
<Filter>Source Files</Filter>
3128
</Text>
3229
</ItemGroup>
30+
<ItemGroup>
31+
<MASM Include="CrashReallyHard32.asm">
32+
<Filter>Source Files</Filter>
33+
</MASM>
34+
</ItemGroup>
35+
<ItemGroup>
36+
<None Include="packages.config" />
37+
</ItemGroup>
3338
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="github.csoltenborn.googletestadapter" version="0.7.1" targetFramework="native" developmentDependency="true" />
4+
</packages>

SampleTests/LoadTests/LoadTests.vcxproj

+3
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@
146146
<ClCompile Include="..\3rdparty\gtest-1.7.0\fused-src\gtest\gtest-all.cc" />
147147
<ClCompile Include="LoadTests.cpp" />
148148
</ItemGroup>
149+
<ItemGroup>
150+
<None Include="packages.config" />
151+
</ItemGroup>
149152
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
150153
<ImportGroup Label="ExtensionTargets">
151154
</ImportGroup>

SampleTests/LoadTests/LoadTests.vcxproj.filters

+3
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,7 @@
2222
<Filter>Source Files</Filter>
2323
</ClCompile>
2424
</ItemGroup>
25+
<ItemGroup>
26+
<None Include="packages.config" />
27+
</ItemGroup>
2528
</Project>

SampleTests/LoadTests/packages.config

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="github.csoltenborn.googletestadapter" version="0.7.1" targetFramework="native" developmentDependency="true" />
4+
</packages>

SampleTests/Tests/Tests.vcxproj

+3
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@
146146
<Project>{1f2c133f-b7bd-4446-a65c-3f7ef9a22ce0}</Project>
147147
</ProjectReference>
148148
</ItemGroup>
149+
<ItemGroup>
150+
<None Include="packages.config" />
151+
</ItemGroup>
149152
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
150153
<ImportGroup Label="ExtensionTargets">
151154
</ImportGroup>

SampleTests/Tests/Tests.vcxproj.filters

+3
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,7 @@
4545
<Filter>Header Files</Filter>
4646
</ClInclude>
4747
</ItemGroup>
48+
<ItemGroup>
49+
<None Include="packages.config" />
50+
</ItemGroup>
4851
</Project>

SampleTests/Tests/packages.config

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="github.csoltenborn.googletestadapter" version="0.7.1" targetFramework="native" developmentDependency="true" />
4+
</packages>

0 commit comments

Comments
 (0)