Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ packages/*

wpp.tgz
cov-int
/.build-temp/

# Rider
.idea
24 changes: 24 additions & 0 deletions WowPacketParser.Proto/WowPacketParser.Proto.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,30 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<UsingTask TaskName="SetProcessEnvironmentVariable"
TaskFactory="RoslynCodeTaskFactory"
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll">
<ParameterGroup>
<Name ParameterType="System.String" Required="true" />
<Value ParameterType="System.String" Required="true" />
</ParameterGroup>
<Task>
<Using Namespace="System" />
<Code Type="Fragment" Language="cs"><![CDATA[
Environment.SetEnvironmentVariable(Name, Value, EnvironmentVariableTarget.Process);
]]></Code>
</Task>
</UsingTask>

<Target Name="SetAsciiTempForProtobuf" BeforeTargets="Protobuf_ResolvePlatform">
<PropertyGroup>
<_ProtobufSafeTemp>$([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)\..\.build-temp'))</_ProtobufSafeTemp>
</PropertyGroup>
<MakeDir Directories="$(_ProtobufSafeTemp)" />
<SetProcessEnvironmentVariable Name="TEMP" Value="$(_ProtobufSafeTemp)" />
<SetProcessEnvironmentVariable Name="TMP" Value="$(_ProtobufSafeTemp)" />
</Target>

<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.34.1" />
<PackageReference Include="Grpc.Tools" Version="2.80.0">
Expand Down