Coder Social home page Coder Social logo

fodyaddinsamples's Introduction

Icon

A working sample for each Fody Addin

fodyaddinsamples's People

Contributors

bcuff avatar brunojuchli avatar csnemes avatar damianreeves avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar icnocop avatar jasonwoods-7 avatar jorgehmv avatar jorisdebock avatar kirksqor avatar ltrzesniewski avatar mikhailshilkov avatar nickstrupat avatar redknightlois avatar rileywhite avatar simoncropp avatar tom-englert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fodyaddinsamples's Issues

NuGet Package Restore failure

When I clone this repository and perform a NuGet Package Restore in Visual Studio 2017 I get the following two errors:

NuGet Package restore failed for project CommanderSample: Unable to find version '0.8.1.2' of package 'Commander.Fody'.
NuGet Package restore failed for project DependencyInjection\NinjectSample: Unable to find version '1.0.0' of package 'Ninject.Fody'.

I initially got this problem in Visual Studio 2017 but not in Visual Studio 2015. After successfully restoring in 2015 it then worked in 2017. After poking around for a bit I realized that 2017 was configured to only use https://api.nuget.org/v3/index.json while 2015 will also use https://www.nuget.org/api/v2/curated-feeds/microsoftdotnet/, a v2 NuGet feed. Commander.Fody and Ninject.Fody can be restored through the v2 NuGet API but not the v3 NuGet API. Once they were in my local NuGet cache at %UserProfile%\.nuget\packages 2017 wouldn't need to download them.

After clearing Fody-related packages from my package cache a few times and poking around some more it looks like these packages can be installed just fine using the v3 NuGet API. For example, when running Install-Package Commander.Fody, NuGet will call https://api.nuget.org/v3/registration1-gz/commander.fody/index.json which successfully contains JSON containing the URL https://api.nuget.org/packages/commander.fody.0.8.1.2.nupkg. The package can then be successfully downloaded using that URL.

The problem is that for any existing project with Commander.Fody in its packages.config that needs to do a Package Restore, NuGet will call https://api.nuget.org/v3-flatcontainer/commander.fody/0.8.1.2/commander.fody.0.8.1.2.nupkg. This returns a 404 instead of the .nupkg file.

For these two packages, the v3 NuGet API endpoint to get a list of the versions also returns a 404. For example, you can successfully see versions for ArraySlice.Fody from https://api.nuget.org/v3-flatcontainer/arrayslice.fody/index.json. However https://api.nuget.org/v3-flatcontainer/commander.fody/index.json is a 404.

Is there anything unusual about the .nuspec files for Commander.Fody and Ninject.Fody that would cause this behavior? Or is this a problem entirely on NuGet.org's end?

The workaround is to add https://www.nuget.org/api/v2 as a NuGet package source. It'll use that successfully after the v3 source fails. The v2 API will redirect to the working .nupkg URL that the v3 API returns when initially installing:

  • https://www.nuget.org/api/v2/package/Commander.Fody/0.8.1.2
  • https://www.nuget.org/api/v2/package/Ninject.Fody/1.0.0

PropertyChanged with hardcoded backing fields.

I would like to at time (such as during initialization) be able to set my property values without triggering the PropertyChanged event. To do this normally, I'd just set the backing field for my property. Since Fody automatically generates backing fields, how can I achieve my goal?

Simple Example for MethodBoundaryAspect

Hello

I try to implement the "MethodBoundaryAspect.Fody" but i cannot access to the abstract class "OnMethodBoundaryAspect". I don´t know why!
I think i initialize the "MethodBoundaryAspect.Fody" wrong :/

Is it possible to insert a MethodBoundaryAspect-Sample into this folder?
Would be nice! :)

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.