Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
40f65d4c
Commit
40f65d4c
authored
Oct 16, 2012
by
csharptest
Committed by
rogerk
Oct 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working project templates for Silverlight testing of SL2..4 and PL4
parent
3c491937
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
99 additions
and
11 deletions
+99
-11
target.csproj
build/target.csproj
+3
-3
CF35.csproj
csproj_templates/CF35.csproj
+3
-0
NET35.csproj
csproj_templates/NET35.csproj
+4
-0
NET40.csproj
csproj_templates/NET40.csproj
+4
-0
PL40.csproj
csproj_templates/PL40.csproj
+26
-2
SL20.csproj
csproj_templates/SL20.csproj
+5
-1
SL30.csproj
csproj_templates/SL30.csproj
+8
-1
SL40.csproj
csproj_templates/SL40.csproj
+8
-1
SLTest.targets
csproj_templates/SLTest.targets
+32
-0
ProtocolBuffers.Test.csproj
src/ProtocolBuffers.Test/ProtocolBuffers.Test.csproj
+2
-1
ProtocolBuffersLite.Test.csproj
src/ProtocolBuffersLite.Test/ProtocolBuffersLite.Test.csproj
+2
-1
ProtocolBuffersLiteMixed.Test.csproj
...ocolBuffersLite.Test/ProtocolBuffersLiteMixed.Test.csproj
+2
-1
No files found.
build/target.csproj
View file @
40f65d4c
...
...
@@ -82,7 +82,7 @@ Target Versions
</PropertyGroup>
<PropertyGroup
Condition=
" '$(TargetVersion)' == 'PL40' "
>
<BuildTools>
4.0
</BuildTools>
<TestFramework>
NONE
</TestFramework>
<TestFramework>
SILVERLIGHT
</TestFramework>
<TargetFrameworkVersion>
v4.0
</TargetFrameworkVersion>
<BuildOutputDirectory>
$(ProjectDirectory)\build_output\$(Configuration)\portable-net40+sl4+sl5+wp7+wp8+win8
</BuildOutputDirectory>
</PropertyGroup>
...
...
@@ -101,7 +101,7 @@ File Groups
<StatLightTestContainer
Include=
"$(SourceDirectory)\ProtocolBuffers.Test\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffers.Test.xap"
/>
<StatLightTestContainer
Include=
"$(SourceDirectory)\ProtocolBuffersLite.Test\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffersLite.Test.xap"
/>
<StatLightTestContainer
Include=
"$(SourceDirectory)\ProtocolBuffersLite.Test\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffers
LiteMixed
.Test.xap"
/>
<StatLightTestContainer
Include=
"$(SourceDirectory)\ProtocolBuffersLite.Test\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffers
MixedLite
.Test.xap"
/>
<PublishItem
Include=
"$(SourceDirectory)\ProtocolBuffers\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffers.dll"
/>
<PublishItem
Include=
"$(SourceDirectory)\ProtocolBuffers\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffers.pdb"
/>
...
...
@@ -160,7 +160,7 @@ Targets For Test
</Target>
<Target
Name=
"_RunStatLight"
>
<Exec
Condition=
" 'a' == 'b' "
<Exec
Command=
""$(StatLightExePath)" -x %(StatLightTestContainer.Identity) --ReportOutputFileType=NUnit --ReportOutputFile=$(BuildTempDirectory)\%(StatLightTestContainer.Filename).xml"
/>
</Target>
...
...
csproj_templates/CF35.csproj
View file @
40f65d4c
...
...
@@ -23,6 +23,9 @@
<DefineConstants>$(DefineConstants);NOSERIALIZABLE;NOFILEVERSION</DefineConstants>
<NoConfig>true</NoConfig>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.Core" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
<ProjectExtensions>
<VisualStudio>
...
...
csproj_templates/NET35.csproj
View file @
40f65d4c
...
...
@@ -14,4 +14,7 @@
<IntermediateOutputPath>obj\NET35\Release\</IntermediateOutputPath>
<DefineConstants>$(DefineConstants)</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.Core" />
</ItemGroup>
</Project>
\ No newline at end of file
csproj_templates/NET40.csproj
View file @
40f65d4c
...
...
@@ -14,4 +14,7 @@
<IntermediateOutputPath>obj\NET40\Release\</IntermediateOutputPath>
<DefineConstants>$(DefineConstants)</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.Core" />
</ItemGroup>
</Project>
\ No newline at end of file
csproj_templates/PL40.csproj
View file @
40f65d4c
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="4.0" DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
xmlns:cs="urn:schemas-csharp-project:template">
<PropertyGroup>
<MinimumVisualStudioVersion>10.0</MinimumVisualStudioVersion>
<EnvironmentFlavor>PORTABLE_LIBRARY</EnvironmentFlavor>
...
...
@@ -17,7 +19,21 @@
<IntermediateOutputPath>obj\PL40\Release\</IntermediateOutputPath>
<DefineConstants>$(DefineConstants);NOSERIALIZABLE;NOSORTEDLIST</DefineConstants>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
<ItemGroup>
<Reference Include="System.Core" />
</ItemGroup>
<Import cs:Precondition=" '$(ProjectType)' != 'TEST' "
Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
<!-- Portable Library will be tested as silverlight -->
<PropertyGroup cs:Precondition=" '$(ProjectType)' == 'TEST' ">
<ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<ValidateXaml>false</ValidateXaml>
<ThrowErrorsInValidation>false</ThrowErrorsInValidation>
<TargetFrameworkProfile />
</PropertyGroup>
<cs:Import Project="SLTest.targets" cs:Precondition=" '$(ProjectType)' == 'TEST' " />
<Import cs:Precondition=" '$(ProjectType)' == 'TEST' "
Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
...
...
@@ -25,4 +41,11 @@
<Target Name="AfterBuild">
</Target>
-->
<ProjectExtensions cs:Precondition=" '$(ProjectType)' == 'TEST' ">
<VisualStudio>
<FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
<SilverlightProjectProperties />
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
</Project>
\ No newline at end of file
csproj_templates/SL20.csproj
View file @
40f65d4c
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="3.5" DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
xmlns:cs="urn:schemas-csharp-project:template">
<PropertyGroup>
<EnvironmentFlavor>SILVERLIGHT</EnvironmentFlavor>
<EnvironmentTemplate>SL20</EnvironmentTemplate>
...
...
@@ -20,6 +22,8 @@
<DefineConstants>$(DefineConstants);NOSERIALIZABLE;NOSORTEDLIST;NOEXTENSIONS</DefineConstants>
<NoConfig>true</NoConfig>
</PropertyGroup>
<!-- Preprocess include of silverlight testing -->
<cs:Import Project="SLTest.targets" cs:Precondition=" '$(ProjectType)' == 'TEST' " />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\v2.0\Microsoft.Silverlight.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
...
...
csproj_templates/SL30.csproj
View file @
40f65d4c
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="3.5" DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
xmlns:cs="urn:schemas-csharp-project:template">
<PropertyGroup>
<EnvironmentFlavor>SILVERLIGHT</EnvironmentFlavor>
<EnvironmentTemplate>SL30</EnvironmentTemplate>
...
...
@@ -20,6 +22,11 @@
<DefineConstants>$(DefineConstants);NOSERIALIZABLE;NOSORTEDLIST</DefineConstants>
<NoConfig>true</NoConfig>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.Core" />
</ItemGroup>
<!-- Preprocess include of silverlight testing -->
<cs:Import Project="SLTest.targets" cs:Precondition=" '$(ProjectType)' == 'TEST' " />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
...
...
csproj_templates/SL40.csproj
View file @
40f65d4c
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="4.0" DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
xmlns:cs="urn:schemas-csharp-project:template">
<PropertyGroup>
<EnvironmentFlavor>SILVERLIGHT</EnvironmentFlavor>
<EnvironmentTemplate>SL40</EnvironmentTemplate>
...
...
@@ -21,6 +23,11 @@
<DefineConstants>$(DefineConstants);NOSERIALIZABLE;NOSORTEDLIST</DefineConstants>
<NoConfig>true</NoConfig>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.Core" />
</ItemGroup>
<!-- Preprocess include of silverlight testing -->
<cs:Import Project="SLTest.targets" cs:Precondition=" '$(ProjectType)' == 'TEST' " />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
...
...
csproj_templates/SLTest.targets
0 → 100644
View file @
40f65d4c
<Project ToolsVersion="3.5" DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
xmlns:cs="urn:schemas-csharp-project:template">
<PropertyGroup>
<SilverlightApplication>true</SilverlightApplication>
<XapOutputs>true</XapOutputs>
<GenerateSilverlightManifest>true</GenerateSilverlightManifest>
<XapFilename>$(AssemblyName).xap</XapFilename>
<SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate>
<SilverlightAppEntry>$(RootNamespace).App</SilverlightAppEntry>
<TestPageFileName>TestPage.html</TestPageFileName>
<CreateTestPage>true</CreateTestPage>
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.Windows" />
<Reference Include="System.Windows.Browser" />
</ItemGroup>
<ItemGroup>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
</Compile>
<None Include="Properties\AppManifest.xml" />
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
</ItemGroup>
</Project>
\ No newline at end of file
src/ProtocolBuffers.Test/ProtocolBuffers.Test.csproj
View file @
40f65d4c
...
...
@@ -3,6 +3,7 @@
<PropertyGroup>
<EnvironmentFlavor>
CLIENTPROFILE
</EnvironmentFlavor>
<EnvironmentTemplate>
NET35
</EnvironmentTemplate>
<ProjectType>
TEST
</ProjectType>
<Configuration
Condition=
" '$(Configuration)' == '' "
>
Debug
</Configuration>
<Platform
Condition=
" '$(Platform)' == '' "
>
AnyCPU
</Platform>
<ProductVersion>
9.0.30729
</ProductVersion>
...
...
@@ -169,7 +170,7 @@
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PropertyGroup
Condition=
" '$(EnvironmentFlavor)' == 'CLIENTPROFILE' "
>
<StartAction>
Program
</StartAction>
<StartProgram>
$(ProjectDir)..\..\lib\NUnit\tools\nunit-console.exe
</StartProgram>
<StartArguments>
/nologo /noshadow /labels /wait $(AssemblyName).dll
</StartArguments>
...
...
src/ProtocolBuffersLite.Test/ProtocolBuffersLite.Test.csproj
View file @
40f65d4c
...
...
@@ -3,6 +3,7 @@
<PropertyGroup>
<EnvironmentFlavor>
CLIENTPROFILE
</EnvironmentFlavor>
<EnvironmentTemplate>
NET35
</EnvironmentTemplate>
<ProjectType>
TEST
</ProjectType>
<Configuration
Condition=
" '$(Configuration)' == '' "
>
Debug
</Configuration>
<Platform
Condition=
" '$(Platform)' == '' "
>
AnyCPU
</Platform>
<ProductVersion>
9.0.30729
</ProductVersion>
...
...
@@ -112,7 +113,7 @@
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PropertyGroup
Condition=
" '$(EnvironmentFlavor)' == 'CLIENTPROFILE' "
>
<StartAction>
Program
</StartAction>
<StartProgram>
$(ProjectDir)..\..\lib\NUnit\tools\nunit-console.exe
</StartProgram>
<StartArguments>
/nologo /noshadow /labels /wait $(AssemblyName).dll
</StartArguments>
...
...
src/ProtocolBuffersLite.Test/ProtocolBuffersLiteMixed.Test.csproj
View file @
40f65d4c
...
...
@@ -3,6 +3,7 @@
<PropertyGroup>
<EnvironmentFlavor>
CLIENTPROFILE
</EnvironmentFlavor>
<EnvironmentTemplate>
NET35
</EnvironmentTemplate>
<ProjectType>
TEST
</ProjectType>
<Configuration
Condition=
" '$(Configuration)' == '' "
>
Debug
</Configuration>
<Platform
Condition=
" '$(Platform)' == '' "
>
AnyCPU
</Platform>
<ProductVersion>
9.0.30729
</ProductVersion>
...
...
@@ -105,7 +106,7 @@
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PropertyGroup
Condition=
" '$(EnvironmentFlavor)' == 'CLIENTPROFILE' "
>
<StartAction>
Program
</StartAction>
<StartProgram>
$(ProjectDir)..\..\lib\NUnit\tools\nunit-console.exe
</StartProgram>
<StartArguments>
/nologo /noshadow /labels /wait $(AssemblyName).dll
</StartArguments>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment