Giter VIP home page Giter VIP logo

cms-transforms-dotnet's Introduction

cms-transforms-dotnet

test-c-sharp: If required, install relevant packages

brew install mono-libgdiplus && brew install dotnet

then test using

cd cms-transforms-c-sharp/CmsTransformTests && dotnet test && cd ../..

Setting up credentials:

The config files for NuGet can be found in ~/.config/NuGet/NuGet.Config

These values can be retrieved from Artifactory UI under “Set Me Up” making sure to choose dotnet-local as the repository and NuGet as the package type.

Add Artifactory to your list of sources

nuget sources Add -Name Artifactory -Source https://monetate.jfrog.io/artifactory/api/nuget/v3/dotnet-local -username {username} -password {password}

Add the following line directly to the NuGet config file under <packageSources>

<add key="ArtifactoryNuGetV3" value="https://monetate.jfrog.io/artifactory/api/nuget/v3/dotnet-local" protocolVersion="3" />

Set apikey with Artifactory

nuget setapikey {username}:{apikey} -Source Artifactory

Publishing to Artifactory manually (dev instructions):

Generate a .nuspec file from the transforms-c-sharp/CmsTransformLibrary directory (the same directory as the .csproj file).

nuget spec

Make changes to the attributes of the newly created .nuspec file. These values can be copied over from the .csproj file. The ID is the value used to download/index the project on Artifactory. It should ALWAYS be CmsTransformLibrary. Increment the version number using appropriate versioning conventions (a.b.c: a=Major, b=Minor, c=Micro). Pack the .nuspec file into a .nupkg which will then be placed into the current directory.

nuget pack CmsTransformLibrary.nuspec

Push your .nupkg file to Artifactory

nuget push CmsTransformLibrary.a.b.c.nupkg -Source ArtifactoryNuGetV3

Navigate to Artifactory dotnet-local UI to confirm the .nupkg has been uploaded

Publishing to Artifactory with Make (dev instructions):

The makefile and corresponding bash script were created for ease of use and use dotnet commands instead of NuGet to be compatible with Jenkins.

make dotnet-test will test the unittests in CmsTransformTests make dotnet-pack will pack a Release version of the CmsTransformLibrary and put it in cms-transforms-c-sharp/CmsTransformLibrary/bin/Release make dotnet-publish will use the output of dotnet-pack and upload it to Artifactory. Make sure to change the version to avoid any chance of overwriting existing artifacts.

cms-transforms-dotnet's People

Contributors

bhumikadalal22 avatar tyler-weaver avatar xaxiomatic avatar parkernelsonkibo avatar

Watchers

Siddhartha Tomar avatar James Cloos avatar Zach Coyle avatar Matthew Plourde avatar Austin Rochford avatar Jack avatar  avatar Tomaz Bester avatar Monetate Jenkins avatar Jay Tian avatar Asha John avatar kibo-michaelmotloch avatar RohitDeware avatar Michael avatar  avatar  avatar  avatar

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.