Skip to content

Commit

Permalink
Only work with package references for RewriteRemote
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Jul 5, 2024
1 parent 4d539d0 commit 537d6ee
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 34 deletions.
4 changes: 2 additions & 2 deletions Rewrite/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<Company>Moderne Inc.</Company>
<PackageIcon>openrewrite.png</PackageIcon>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<Version>0.8.0-preview-2</Version>
<Version>0.8.0-preview-3</Version>

<RewriteRemoteVersion>0.8.0-preview-2</RewriteRemoteVersion>
<RewriteRemoteVersion>$(Version)</RewriteRemoteVersion>
</PropertyGroup>
</Project>
4 changes: 2 additions & 2 deletions Rewrite/src/Rewrite.CSharp.Test/Rewrite.CSharp.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<ProjectReference Include="..\Rewrite.Test\Rewrite.Test.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)'=='Debug' and '$(IDEA_INITIAL_DIRECTORY)'!=''">
<ProjectReference Include="..\..\..\..\..\moderneinc\rewrite-remote\Rewrite.Remote\src\Rewrite.Remote\Rewrite.Remote.csproj" />
<ItemGroup>
<PackageReference Include="Rewrite.Remote.Api" Version="$(RewriteRemoteVersion)" />
</ItemGroup>

<Target Name="CopyCustomDirectory" BeforeTargets="CoreCompile">
Expand Down
6 changes: 1 addition & 5 deletions Rewrite/src/Rewrite.Java/Rewrite.Java.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@
<ProjectReference Include="..\Rewrite.Core\Rewrite.Core.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)'=='Debug' and '$(IDEA_INITIAL_DIRECTORY)'!=''">
<ProjectReference Include="..\..\..\..\..\moderneinc\rewrite-remote\Rewrite.Remote\src\Rewrite.Remote.Api\Rewrite.Remote.Api.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)'=='Release' and '$(UseProjectReference)'!='true'">
<ItemGroup>
<PackageReference Include="Rewrite.Remote.Api" Version="$(RewriteRemoteVersion)" />
</ItemGroup>

Expand Down
6 changes: 1 addition & 5 deletions Rewrite/src/Rewrite.Json/Rewrite.Json.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
<ProjectReference Include="..\Rewrite.Core\Rewrite.Core.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)'=='Debug' and '$(IDEA_INITIAL_DIRECTORY)'!=''">
<ProjectReference Include="..\..\..\..\..\moderneinc\rewrite-remote\Rewrite.Remote\src\Rewrite.Remote.Api\Rewrite.Remote.Api.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)'=='Release' and '$(UseProjectReference)'!='true'">
<ItemGroup>
<PackageReference Include="Rewrite.Remote.Api" Version="$(RewriteRemoteVersion)" />
</ItemGroup>

Expand Down
6 changes: 1 addition & 5 deletions Rewrite/src/Rewrite.Properties/Rewrite.Properties.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
<ProjectReference Include="..\Rewrite.Core\Rewrite.Core.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)'=='Debug' and '$(IDEA_INITIAL_DIRECTORY)'!=''">
<ProjectReference Include="..\..\..\..\..\moderneinc\rewrite-remote\Rewrite.Remote\src\Rewrite.Remote.Api\Rewrite.Remote.Api.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)'=='Release' and '$(UseProjectReference)'!='true'">
<ItemGroup>
<PackageReference Include="Rewrite.Remote.Api" Version="$(RewriteRemoteVersion)" />
</ItemGroup>

Expand Down
6 changes: 1 addition & 5 deletions Rewrite/src/Rewrite.Test/Rewrite.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@
<PackageReference Include="xunit" Version="2.8.1" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)'=='Debug' and '$(IDEA_INITIAL_DIRECTORY)'!=''">
<ProjectReference Include="..\..\..\..\..\moderneinc\rewrite-remote\Rewrite.Remote\src\Rewrite.Remote.Api\Rewrite.Remote.Api.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)'=='Release' and '$(UseProjectReference)'!='true'">
<ItemGroup>
<PackageReference Include="Rewrite.Remote.Api" Version="$(RewriteRemoteVersion)" />
</ItemGroup>
</Project>
6 changes: 1 addition & 5 deletions Rewrite/src/Rewrite.Xml/Rewrite.Xml.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
<ProjectReference Include="..\Rewrite.Core\Rewrite.Core.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)'=='Debug' and '$(IDEA_INITIAL_DIRECTORY)'!=''">
<ProjectReference Include="..\..\..\..\..\moderneinc\rewrite-remote\Rewrite.Remote\src\Rewrite.Remote.Api\Rewrite.Remote.Api.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)'=='Release' and '$(UseProjectReference)'!='true'">
<ItemGroup>
<PackageReference Include="Rewrite.Remote.Api" Version="$(RewriteRemoteVersion)" />
</ItemGroup>

Expand Down
6 changes: 1 addition & 5 deletions Rewrite/src/Rewrite.Yaml/Rewrite.Yaml.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
<ProjectReference Include="..\Rewrite.Core\Rewrite.Core.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)'=='Debug' and '$(IDEA_INITIAL_DIRECTORY)'!=''">
<ProjectReference Include="..\..\..\..\..\moderneinc\rewrite-remote\Rewrite.Remote\src\Rewrite.Remote.Api\Rewrite.Remote.Api.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)'=='Release' and '$(UseProjectReference)'!='true'">
<ItemGroup>
<PackageReference Include="Rewrite.Remote.Api" Version="$(RewriteRemoteVersion)" />
</ItemGroup>

Expand Down

0 comments on commit 537d6ee

Please sign in to comment.