Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Use relative ProjectReference paths instead of $(SolutionDir) #1094

Merged

Conversation

0xced
Copy link
Contributor

@0xced 0xced commented Jan 22, 2024

What does this PR do?

This pull request replaces all usage of $(SolutionDir) with relative paths instead.

Why is it important?

When using Testcontainers project directly from source, using $(SolutionDir) interferes since the $(SolutionDir) will be defined for the currently opened solution instead of Testcontainers.sln. Using relative paths work both for Testcontainers.sln and MyApp.sln. Using Testcontainers direclty from source is required to test bleeding edge feature such as WithReuse(true) which was introduced a few days ago.

Note

directly from source means using

<ProjectReference Include="..\..\testcontainers-dotnet\src\Testcontainers.PostgreSql\Testcontainers.PostgreSql.csproj" />

instead of

<PackageReference Include="Testcontainers.PostgreSql" Version="3.7.0" />

Related issues

None

Copy link

netlify bot commented Jan 22, 2024

Deploy Preview for testcontainers-dotnet ready!

Name Link
🔨 Latest commit ca6f7a6
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/65aeff6fe56c580008c6a7b8
😎 Deploy Preview https://deploy-preview-1094--testcontainers-dotnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@0xced 0xced force-pushed the RelativeProjectReferences branch from c29aad8 to ca6f7a6 Compare January 22, 2024 23:51
@HofmeisterAn HofmeisterAn added the chore A change that doesn't impact the existing functionality, e.g. internal refactorings or cleanups label Jan 25, 2024
@HofmeisterAn HofmeisterAn changed the title Use relative paths in project reference instead of $(SolutionDir) chore: Use relative ProjectReference paths instead of $(SolutionDir) Jan 25, 2024
@HofmeisterAn HofmeisterAn merged commit e224761 into testcontainers:develop Jan 25, 2024
@0xced 0xced deleted the RelativeProjectReferences branch January 25, 2024 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore A change that doesn't impact the existing functionality, e.g. internal refactorings or cleanups
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants