GithubHelp home page GithubHelp logo

Comments (10)

gillima avatar gillima commented on August 22, 2024 1

The way to include content files has changed with PackageReference. The target folder is not content anymore but follows a pattern described in the .nuspec reference. They recommend for compatibility to have both directories specified.

Adding the package path to the content file and changing the type from Content to Compile made the nuget working for me with PackageReference:

  <ItemGroup Condition="'$(Configuration)'=='Source'">
    <Compile Include="TinyMessenger.cs">
      <Pack>true</Pack>
      <PackageCopyToOutput>true</PackageCopyToOutput>
      <PackagePath>contentFiles/cs/any</PackagePath>
    </Compile>
  </ItemGroup>

Hope this helps!

from tinyioc.

niemyjski avatar niemyjski commented on August 22, 2024

If anyone could help out with this issue it would be greatly appreciated.

from tinyioc.

Tviljan avatar Tviljan commented on August 22, 2024

Added TinyIoC 1.4.0 alpha 1 to a .net standard 2.0 library project. It installed but was not "detected". Tried to downgrade to standard 1.6 but did not help

from tinyioc.

TroySchmidt avatar TroySchmidt commented on August 22, 2024

Same experience as @Tviljan. Added to Xamarin .NET Standard 2.0 project and it installed, but has nothing available in Object browser or via typing.

from tinyioc.

niemyjski avatar niemyjski commented on August 22, 2024

Yeah, there is an issue with source imbedding that we need to figure out or revert to old way of source imbedding (not ideal). Any help would be appreciated.

from tinyioc.

gkarabin avatar gkarabin commented on August 22, 2024

I did a little reading on the subject. One option is well described here: https://medium.com/@attilah/source-code-only-nuget-packages-8f34a8fb4738

Nugetizer may provide some syntactic sugar: https://gist.github.com/attilah/fd3e71f03fd258c496179e0200c57b0b#gistcomment-3686577

I don’t actually know what this stuff looks like on the consumption side - I’m reading on a tablet and won’t be in a position to tinker in Visual Studio for a while. I don’t know if the source code would be added to the project directly, or if it’s instead hidden in the package as an immutable file shared by all solutions on the machine.

Depending on your goals it could be interesting.

from tinyioc.

niemyjski avatar niemyjski commented on August 22, 2024

@gillima is there any chance you could submit a quick pr for the 3 projects and try it out? I'm curious if that is the only change we need to make or do we need to make some changes to the common.props in the build folder as well (Brought in via directory.build.props)

from tinyioc.

niemyjski avatar niemyjski commented on August 22, 2024

@grumpydev Can you please update the NUGET_KEY so we can push tagged packages to nuget: https://github.com/grumpydev/TinyIoC/actions/runs/885366293

from tinyioc.

grumpydev avatar grumpydev commented on August 22, 2024

@grumpydev Can you please update the NUGET_KEY so we can push tagged packages to nuget: https://github.com/grumpydev/TinyIoC/actions/runs/885366293

Done.. I think :)

from tinyioc.

niemyjski avatar niemyjski commented on August 22, 2024

Thanks!

from tinyioc.

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.