Browse Source

Move generated test code to a seperate lib

Sydney Acksman 5 years ago
parent
commit
a85c4a3299

+ 1 - 1
csharp/generate_protos.sh

@@ -45,7 +45,7 @@ $PROTOC -Isrc --csharp_out=csharp/src/Google.Protobuf \
 # and old_extensions2.proto, which are generated with an older version
 # and old_extensions2.proto, which are generated with an older version
 # of protoc.
 # of protoc.
 $PROTOC -Isrc -Icsharp/protos \
 $PROTOC -Isrc -Icsharp/protos \
-    --csharp_out=csharp/src/Google.Protobuf.Test/TestProtos \
+    --csharp_out=csharp/src/Google.Protobuf.Test.CodeGen \
     --descriptor_set_out=csharp/src/Google.Protobuf.Test/testprotos.pb \
     --descriptor_set_out=csharp/src/Google.Protobuf.Test/testprotos.pb \
     --include_source_info \
     --include_source_info \
     --include_imports \
     --include_imports \

+ 0 - 0
csharp/src/Google.Protobuf.Test/TestProtos/ForeignMessagePartial.cs → csharp/src/Google.Protobuf.Test.CodeGen/ForeignMessagePartial.cs


+ 15 - 0
csharp/src/Google.Protobuf.Test.CodeGen/Google.Protobuf.Test.CodeGen.csproj

@@ -0,0 +1,15 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <TargetFrameworks>net451;netstandard1.0</TargetFrameworks>
+    <AssemblyOriginatorKeyFile>../../keys/Google.Protobuf.snk</AssemblyOriginatorKeyFile>
+    <SignAssembly>true</SignAssembly>
+    <PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
+    <IsPackable>False</IsPackable>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <ProjectReference Include="..\Google.Protobuf\Google.Protobuf.csproj" />
+  </ItemGroup>
+
+</Project>

+ 0 - 0
csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs → csharp/src/Google.Protobuf.Test.CodeGen/MapUnittestProto3.cs


+ 0 - 0
csharp/src/Google.Protobuf.Test/TestProtos/TestMessagesProto2.cs → csharp/src/Google.Protobuf.Test.CodeGen/TestMessagesProto2.cs


+ 0 - 0
csharp/src/Google.Protobuf.Test/TestProtos/TestMessagesProto3.cs → csharp/src/Google.Protobuf.Test.CodeGen/TestMessagesProto3.cs


+ 0 - 0
csharp/src/Google.Protobuf.Test/TestProtos/Unittest.cs → csharp/src/Google.Protobuf.Test.CodeGen/Unittest.cs


+ 0 - 0
csharp/src/Google.Protobuf.Test/TestProtos/UnittestCustomOptionsProto3.cs → csharp/src/Google.Protobuf.Test.CodeGen/UnittestCustomOptionsProto3.cs


+ 0 - 0
csharp/src/Google.Protobuf.Test/TestProtos/UnittestImport.cs → csharp/src/Google.Protobuf.Test.CodeGen/UnittestImport.cs


+ 0 - 0
csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportProto3.cs → csharp/src/Google.Protobuf.Test.CodeGen/UnittestImportProto3.cs


+ 0 - 0
csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportPublic.cs → csharp/src/Google.Protobuf.Test.CodeGen/UnittestImportPublic.cs


+ 0 - 0
csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportPublicProto3.cs → csharp/src/Google.Protobuf.Test.CodeGen/UnittestImportPublicProto3.cs


+ 0 - 0
csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs → csharp/src/Google.Protobuf.Test.CodeGen/UnittestIssues.cs


+ 0 - 0
csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs → csharp/src/Google.Protobuf.Test.CodeGen/UnittestProto3.cs


+ 0 - 0
csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs → csharp/src/Google.Protobuf.Test.CodeGen/UnittestWellKnownTypes.cs


+ 1 - 0
csharp/src/Google.Protobuf.Test/Google.Protobuf.Test.csproj

@@ -10,6 +10,7 @@
 
 
   <ItemGroup>
   <ItemGroup>
     <ProjectReference Include="..\Google.Protobuf\Google.Protobuf.csproj" />
     <ProjectReference Include="..\Google.Protobuf\Google.Protobuf.csproj" />
+    <ProjectReference Include="..\Google.Protobuf.Test.CodeGen\Google.Protobuf.Test.CodeGen.csproj"/>
   </ItemGroup>
   </ItemGroup>
 
 
   <ItemGroup>
   <ItemGroup>