Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to simplify MSBuild-targets?
    primarykey
    data
    text
    <pre class="lang-xml prettyprint-override"><code>&lt;Target Name="ProtobufCompile" Inputs="@(ProtocCompile)" Outputs="$(IntermediateOutputPath)$([System.Text.RegularExpressions.Regex]::Replace('%(ProtocCompile.RelativeDir)','\.\.[/\\]',''))%(ProtocCompile.Filename).cs"&gt; &lt;PropertyGroup&gt; &lt;protooutdir&gt;$(IntermediateOutputPath)$([System.Text.RegularExpressions.Regex]::Replace('%(ProtocCompile.RelativeDir)','\.\.[/\\]',''))&lt;/protooutdir&gt; &lt;/PropertyGroup&gt; &lt;Message Text="%(ProtocCompile.Filename)%(ProtocCompile.Extension)" Importance="high" /&gt; &lt;MakeDir Directories="$(protooutdir)" /&gt; &lt;Exec Command="$(ProtobufCompiler) --protoc_dir=${PROTOBUF_PROTOC_EXECUTABLE}/.. --proto_path=%(ProtocCompile.RootDir)%(ProtocCompile.Directory) -output_directory=$(protooutdir) %(ProtocCompile.FullPath)" /&gt; &lt;/Target&gt; &lt;!-- set Intputs and Outputs --&gt; &lt;Target Name="ProtobufCSharpCompile" DependsOnTargets="ProtobufCompile"&gt; &lt;CreateItem Include="$(IntermediateOutputPath)$([System.Text.RegularExpressions.Regex]::Replace('%(ProtocCompile.RelativeDir)','\.\.[/\\]',''))%(ProtocCompile.Filename).cs"&gt; &lt;Output TaskParameter="Include" ItemName="Compile"/&gt; &lt;/CreateItem&gt; &lt;/Target&gt; &lt;Target Name="ProtobufClean" BeforeTargets="Clean"&gt; &lt;Delete Files="$(IntermediateOutputPath)$([System.Text.RegularExpressions.Regex]::Replace('%(ProtocCompile.RelativeDir)','\.\.[/\\]',''))%(ProtocCompile.Filename).cs" /&gt; &lt;/Target&gt; </code></pre> <p>This is the piece of target-file. How to simplify this code? How to reduce duplicating of string below?</p> <pre class="lang-xml prettyprint-override"><code>$(IntermediateOutputPath)$([System.Text.RegularExpressions.Regex]::Replace('%(ProtocCompile.RelativeDir)','\.\.[/\\]','')) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload