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

Convert into an Sdk Package. #1

Closed
simplexidev opened this issue Oct 5, 2023 · 2 comments
Closed

Convert into an Sdk Package. #1

simplexidev opened this issue Oct 5, 2023 · 2 comments

Comments

@simplexidev
Copy link
Owner

simplexidev commented Oct 5, 2023

Eventualy, this should be able to be used as an MSBuild Sdk package. Doing this, SimplexiDev repositories would be able to use this project as simply as:

  1. Create a (minimum) Directory.Build.props in the root of the repository:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

  <PropertyGroup>
    <SDRepositoryPath>$(MSBuildThisFileDirectory)</SDRepositoryPath>
    <SDRepositoryName>sdevlibs</SDRepositoryName>
  </PropertyGroup>

</Project>
  1. Create a sources/ folder in the root of the repository.
  2. For each project, create the source project named sources/ProjectName/src/ProjectName.csproj:
<Project Sdk="SimplexiDev.Build.Sdk/1.0.0">

  <PropertyGroup>
    <!-- Add a new Guid for each project file. -->
    <Guid>{00000000-0000-0000-0000-000000000000}</Guid>
  </PropertyGroup>

</Project>
  1. For each source project, create another one using the same template as the source project named sources/ProjectName/tests/ProjectName.Tests.csproj.

EDIT 1: Made changes to Step 1, as the MSBuild properties will be changing a bit, with more information needed from the user prior to using the Sdk.

@simplexidev
Copy link
Owner Author

When this happens, we will have to manually import the Microsoft.NET.Sdk package (as separate props and targets) into the files.

@simplexidev
Copy link
Owner Author

This is considered done, doesn't work right, but it is an SDK package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant