Skip to content

Commit d08484b

Browse files
Merge pull request #4149 from StephenBonikowsky/stebon/master/Fixsvcutilxmlserializertool
Fix for tool command line syntax issue.
2 parents eecebff + b99c6b9 commit d08484b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/svcutilcore/files/dotnet-svcutil.xmlserializer.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<_SerializerDllIntermediateFolder>$(IntermediateOutputPath)$(_SerializationAssemblyName).dll</_SerializerDllIntermediateFolder>
66
<_SerializerPdbIntermediateFolder>$(IntermediateOutputPath)$(_SerializationAssemblyName).pdb</_SerializerPdbIntermediateFolder>
77
<_SerializerCsIntermediateFolder>$(IntermediateOutputPath)$(_SerializationAssemblyName).cs</_SerializerCsIntermediateFolder>
8-
<_SvcUtilWarningText>Warning : Fail to generate the serializer for $(AssemblyName)$(TargetExt).</_SvcUtilWarningText>
8+
<_SvcUtilWarningText>Warning : Failed to generate the serializer for $(AssemblyName)$(TargetExt).</_SvcUtilWarningText>
99
<_SerializationAssemblyDisabledWarnings>$(NoWarn);219;162;$(SerializationAssemblyDisabledWarnings)</_SerializationAssemblyDisabledWarnings>
1010
</PropertyGroup>
1111

src/svcutilcore/src/Microsoft/Tools/ServiceModel/SvcUtil/Options.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,10 @@ private void AddMscorlib(Dictionary<string, Type> foundCollectionTypes)
414414

415415
private void LoadSMReferenceAssembly()
416416
{
417+
ToolConsole.WriteLine("[Logging] Getting list of referenced assemblies.");
417418
string smReferenceArg = _arguments.GetArgument(Options.Cmd.SMReference);
418-
IList<string> referencedAssembliesArgs = smReferenceArg.Split(':').ToList();
419+
ToolConsole.WriteLine("[Logging] The string of reference assemblies before parsing: " + smReferenceArg);
420+
IList<string> referencedAssembliesArgs = smReferenceArg.Split(';').ToList();
419421
if (referencedAssembliesArgs != null && referencedAssembliesArgs.Count > 0)
420422
{
421423
string smassembly = "";
@@ -435,6 +437,8 @@ private void LoadSMReferenceAssembly()
435437
}
436438
if ((string.IsNullOrEmpty(smassembly)) || (string.IsNullOrEmpty(smpassembly)))
437439
{
440+
ToolConsole.WriteLine("The full path found for System.ServiceModel.Primitives.dll is: " + smassembly);
441+
ToolConsole.WriteLine("The full path found for System.Private.ServiceModel.dll is: " + smpassembly);
438442
ToolConsole.WriteError("Missing one or both of the paths for System.ServiceModel.Primitives and System.Private.ServiceModel");
439443
throw new ArgumentException("Invalid smreference value");
440444
}

src/svcutilcore/tests/dotnet-svcutil.xmlserializer.IntegrationTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<Message Text="$(ServiceModelPrimitivesAssemblyName) exists in $(ServiceModelPrimitivesOutputPath)" Condition="Exists('$(ServiceModelPrimitivesOutputPath)$(ServiceModelPrimitivesAssemblyName)') == 'true'" Importance="high" />
8686
<Error Text="$(ServiceModelPrivateAssemblyName) does not exist in $(ServiceModelPrivateOutputPath)" Condition="Exists('$(ServiceModelPrivateOutputPath)$(ServiceModelPrivateAssemblyName)') != 'true'" />
8787
<Error Text="$(ServiceModelPrimitivesAssemblyName) does not exist in $(ServiceModelPrimitivesOutputPath)" Condition="Exists('$(ServiceModelPrimitivesOutputPath)$(ServiceModelPrimitivesAssemblyName)') != 'true'" />
88-
<Exec Command="$(DotNetExe) $(DotnetSvcutilXmlSerializerAssembly) $(InputTestAssembly) --quiet --out:$(OutputGeneratedSource) --smreference:$(ServiceModelPrimitivesAssembly):$(ServiceModelPrivateAssembly) --reference=$(depRef)" />
88+
<Exec Command="$(DotNetExe) $(DotnetSvcutilXmlSerializerAssembly) $(InputTestAssembly) --quiet --out:$(OutputGeneratedSource) --smreference:&quot;$(ServiceModelPrimitivesAssembly);$(ServiceModelPrivateAssembly)&quot; --reference=$(depRef)" />
8989
<Warning Condition="Exists('$(OutputGeneratedSource)') != 'true'" Text="Failed to generate $(OutputGeneratedSource)"/>
9090
<Csc Condition="Exists('$(OutputGeneratedSource)') == 'true'"
9191
OutputAssembly="$(CscOutputAssembly)"

0 commit comments

Comments
 (0)