-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
help wantedIssues that the core team doesn't plan to work on, but would accept a PR for. Comment to claim.Issues that the core team doesn't plan to work on, but would accept a PR for. Comment to claim.triaged
Description
I have a custom msbuild task that specifies a public parameter of an enum type (CompressionLevel). msbuild rejects the parameter, even though the assembly reference is listed.
D:\CustomTasks.proj(52,25): error MSB4022: The result "System.IO.Compression.CompressionLevel" of evaluating the value "System.IO.Compression.CompressionLevel" of the "ParameterType" attribute in element <Parameter> is not valid.
<UsingTask TaskName="ZipDirectory" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
<ParameterGroup>
<Directory ParameterType="System.String" Required="True"/>
<DestinationZipFile ParameterType="System.String" Required="True"/>
<CompressionLevel ParameterType="System.IO.Compression.CompressionLevel" />
</ParameterGroup>
<Task>
<Reference Include="System.IO.Compression.FileSystem"/>
<Code Source="$(BuildScriptsDirectory)\ZipDirectory.cs"/>
</Task>
</UsingTask>Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedIssues that the core team doesn't plan to work on, but would accept a PR for. Comment to claim.Issues that the core team doesn't plan to work on, but would accept a PR for. Comment to claim.triaged