Category: nuget

  • [NuGet] : MimeTypeMapOfficial

    This is a Nuget that I use in NetCore2Blockly to know the type of the file embedded: Link: https://www.nuget.org/packages/MimeTypeMapOfficial/ Site: https://github.com/samuelneff/MimeTypeMap What it does: Provides a huge two-way mapping of file extensions to mime types and mime types to file extensions, If no mime type is found then the generic “application/octet-stream” is returned. Usage: static…

  • Using files in a ASP.NET Core nuget package

    To use static (html) files in a NUGET ASP.NET Core package to be displayed I have used the following solution 1. Put the files in a folder ( in my case,blocklyAutomation ) 2. Put in the .csproj to embed the files <ItemGroup>   <EmbeddedResource Include=”BlocklyAutomation\**\*”>     <CopyToOutputDirectory>Never</CopyToOutputDirectory>   </EmbeddedResource> </ItemGroup> 3.  Create an extension to use it ;…

  • .NET Core global tool CD/CI with AzureDevops to Nuget

    I want to can deploy automatically from GitHub  to Nuget a .NET Global ( or local ) tool. It is enough simple; 1. Get an API key from GitHub 2. Goto to your AzureDevops,settings ( down the page ) and connect with a new Service Connection AzureDevops to GitHub ( name: nugetAndrei) 3. Make an…

  • Entity Framework 6 Record and play use : Unit Testing ( part 2 of 5)

      Part 1 : What is EF record and play : http://msprogrammer.serviciipeweb.ro/2014/11/29/entity-framework-6-record-and-play-1-of-5/  Part 2: EF Record and play use: Testing : http://msprogrammer.serviciipeweb.ro/2014/12/08/entity-framework-6-record-and-play-use-unit-testing-part-2-of-5/ Part 3: EF Record and play use: Make demo: http://msprogrammer.serviciipeweb.ro/2014/12/14/entity-framework-6-record-and-play-use-making-demos-part-3-of-5/  Part 4: EF Record and play use: Record user Sql when a bug occurs: http://msprogrammer.serviciipeweb.ro/2014/12/26/ef-record-and-play-use-recording-user-sql-when-a-bug-occurred-part-4-of-5/ Part 5: EF record and play: conclusions: http://msprogrammer.serviciipeweb.ro/2015/01/05/ef-record-and-play-conclusions/…

  • Browser history–part 5–conclusions

    This is the part 5 of 5 of my implementing of a MVC Browser history MVC browser history – idea Browser history –2 – implementing,small bugs Browser history 3–trying to Nuget – modifications in order to can be transformed from an application to a component Browser history 4–NuGet again -  finally Nuget deployment Browser history–part…

  • Browser history 4–NuGet again

    This is the part 4 of 5 of my implementing of a MVC Browser history MVC browser history – idea Browser history –2 – implementing,small bugs Browser history 3–trying to Nuget – modifications in order to can be transformed from an application to a component Browser history 4–NuGet again – finally Nuget deployment Browser history–part…

  • Clearer as Nuget package

    It was not so difficult to make Clearer as NuGet package. Just analyzing MVC Sitemap package done the trick. So the package looks like:   You can install from http://nuget.org/packages/Clearer or download a sample application  http://clearer.codeplex.com ( What he does ? In every application there are some variables that are set by the ASP.NET application(…

  • Hydrating

    My first Nuget project: Hydrating.  Also a Codeplex project : http://hydrating.codeplex.com/  It can re-make an object by adding items of “property/value” It comes in 2 flavors: .NET 2.0 ( reflection ) and .NET 4  ( expression). Sample Usage: Sample usage: var Model = new HydrateGeneric<MyModel>(); Model.AddNewProperty("OneProp","bb"); Model.AddNewProperty("newData.StartDate",DateTime.Now.AddDays(1).ToString()); Model.AddNewProperty("newData.SecondProp","AB"); Model.AddNewProperty("newData.aOne.ThirdProp","XXX"); var data = Model.NewObject(); Console.WriteLine(data.newData.SecondProp); Console.WriteLine(data.newData.StartDate);…