Code Monkey home page Code Monkey logo

Comments (4)

Genbox avatar Genbox commented on July 28, 2024

I'll take a look at it in the weekend and see what it has to offer.

from velcrophysics.

Genbox avatar Genbox commented on July 28, 2024

Looks interesting - I'm not entirely sure how to build the definition file as I have many projects depending on each other etc.

I would be happy if someone with experience in Protobuild could sketch up a solution and contribute it.

from velcrophysics.

dsaf avatar dsaf commented on July 28, 2024

Maybe the project owner @hach-que can help?

from velcrophysics.

hach-que avatar hach-que commented on July 28, 2024

Sure, what do you need?

Referencing another Protobuild definition or a GAC reference

Just add it to the references section like this:

<?xml version="1.0" encoding="utf-8"?>
<Project Name="ProjectA" Path="ProjectA" Type="Library">
  <Properties />
  <References>
    <Reference Include="System" />
    <Reference Include="System.Core" />
    <Reference Include="ProjectB" />
  </References>

Referencing DLLs in your repo, native DLLs or custom .csproj files

First you need to declare an external project definition (see http://protobuild.readthedocs.io/en/latest/external_projects.html for information on how these are structured and what you can do with them). Then you'd reference the external project just as you would any other Protobuild definition:

<?xml version="1.0" encoding="utf-8"?>
<Project Name="ProjectA" Path="ProjectA" Type="Library">
  <Properties />
  <References>
    <Reference Include="System" />
    <Reference Include="System.Core" />
    <Reference Include="ExternalProject" />
  </References>

Referencing NuGet packages:

First add the package to your module by running:

Protobuild.exe --add NameOfNuGetPackage@SpecificVersion

then reference the NuGet package:

<?xml version="1.0" encoding="utf-8"?>
<Project Name="ProjectA" Path="ProjectA" Type="Library">
  <Properties />
  <References>
    <Reference Include="System" />
    <Reference Include="System.Core" />
    <Reference Include="SomeNuGetPackage" />
  </References>

Referencing a Git repository

If you want to reference another Git repository that's using Protobuild (like MonoGame), you first add the Git repository as a package e.g.:

Protobuild.exe --add https-git://github.com/MonoGame/MonoGame@develop

then reference the specific projects in the package you want to pull in:

<?xml version="1.0" encoding="utf-8"?>
<Project Name="ProjectA" Path="ProjectA" Type="Library">
  <Properties />
  <References>
    <Reference Include="System" />
    <Reference Include="System.Core" />
    <Reference Include="MonoGame.Framework" />
  </References>

from velcrophysics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.