C# Project Management with Maven

前端 未结 7 1081
一生所求
一生所求 2020-12-17 09:23

Anyone had experience of managing C# based projects with Maven?

If yes , please tell me a few words about it , how weird would it be to create such a setup.

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-17 09:42

    For .NET Core, you can use the dotnet-maven-plugin which drives the dotnet and nuget commands, as well as adds support for e.g. cleaning, releasing etc. in the "Maven way".

    Here's an example plugin configuration:

    
      [...]
      dotnet
    
      [...]
      
        
          
            org.eobjects.build
            dotnet-maven-plugin
            0.11
            true
          
        
      
      [...]
    
    

    (Notice the packaging type set to dotnet).

    This will then read from the project.json file and run dotnet and nuget commands according to the maven lifecycle phases such as clean, compile, test, install etc.

提交回复
热议问题