@joebigelow / wix-1 / commits / d16eb4db

Improve error message when argument is missing for a switch

Rob Mensching committed Jul 12, 2018 at 21:54 UTC d16eb4dbbef5e29b4096f8d378253d4d3ca85a82
2 files changed +1 -4
src/WixToolset.Data/ErrorMessages.cs
+1 -1
@@ -389,7 +389,7 @@ namespace WixToolset.Data
389
390 public static Message ExpectedArgument(string argument)
391 {
392 - return Message(null, Ids.ExpectedArgument, "{0} is expected to be followed by a value argument.", argument);
392 + return Message(null, Ids.ExpectedArgument, "{0} is expected to be followed by a value. See -? for additional detail.", argument);
393 }
394
395 public static Message ExpectedAttribute(SourceLineNumber sourceLineNumbers, string elementName, string attributeName)
src/WixToolset.Data/WixToolset.Data.csproj
-3
@@ -1,9 +1,7 @@
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
3
4 -
4 <Project Sdk="Microsoft.NET.Sdk">
6 -
5 <PropertyGroup>
6 <TargetFramework>netstandard2.0</TargetFramework>
7 <Title>WiX Toolset Data</Title>
@@ -13,5 +11,4 @@
11 <ItemGroup>
12 <PackageReference Include="Nerdbank.GitVersioning" Version="2.1.7" PrivateAssets="all" />
13 </ItemGroup>
16 -
14 </Project>