diff options
| author | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-10-30 12:30:09 +0100 |
|---|---|---|
| committer | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-10-30 12:30:09 +0100 |
| commit | 141402fdf7b4d49a012204f4418c74e48e26152f (patch) | |
| tree | 254844b33c4c08478fd16108a63b4a4981b9a922 /backend/Elements.Backend/Directory.build.props | |
| parent | b7e09de3cb8709e5456b996984b5de8161202ef6 (diff) | |
Improve docker config
Diffstat (limited to 'backend/Elements.Backend/Directory.build.props')
| -rw-r--r-- | backend/Elements.Backend/Directory.build.props | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/backend/Elements.Backend/Directory.build.props b/backend/Elements.Backend/Directory.build.props new file mode 100644 index 0000000..cb358fd --- /dev/null +++ b/backend/Elements.Backend/Directory.build.props @@ -0,0 +1,18 @@ +<Project> + + <PropertyGroup> + <DefaultItemExcludes>$(DefaultItemExcludes);$(MSBuildProjectDirectory)/obj/**/*</DefaultItemExcludes> + <DefaultItemExcludes>$(DefaultItemExcludes);$(MSBuildProjectDirectory)/bin/**/*</DefaultItemExcludes> + </PropertyGroup> + + <PropertyGroup Condition="'$(DOTNET_RUNNING_IN_CONTAINER)' == 'true'"> + <BaseIntermediateOutputPath>$(MSBuildProjectDirectory)/obj/container/</BaseIntermediateOutputPath> + <BaseOutputPath>$(MSBuildProjectDirectory)/bin/container/</BaseOutputPath> + </PropertyGroup> + + <PropertyGroup Condition="'$(DOTNET_RUNNING_IN_CONTAINER)' != 'true'"> + <BaseIntermediateOutputPath>$(MSBuildProjectDirectory)/obj/local/</BaseIntermediateOutputPath> + <BaseOutputPath>$(MSBuildProjectDirectory)/bin/local/</BaseOutputPath> + </PropertyGroup> + +</Project> |
