Giter Club home page Giter Club logo

Comments (4)

jakubmisek avatar jakubmisek commented on May 27, 2024

Hi,

Thank you for the issue;

  • the reference will be updated.
  • you can disable the reference to Peachpie.App by setting <DisableImplicitPeachpieReferences>true</.. MSBuild property

from peachpie.

mhoeper avatar mhoeper commented on May 27, 2024

Thanks Jakub for the update. Turns out i am using Peachpie.NET.Sdk, too, so somehow even with <DisableImplicitPeachpieReferences>true</.. the System.Data.SqlClient gets linked.

Do you know this is going to be released this year?

from peachpie.

jakubmisek avatar jakubmisek commented on May 27, 2024

That should work, we're using it for years in production :/

Peachpie.NET.Sdk is the project build target, and it either adds a reference to Peachpie.App or not.

  • Have you tried dotnet restore after changing the property?

FYI the dependencies look like this:

Peachpie.NET.Sdk -> <your.dll> -> Peachpie.App -> Peachpie.Library.MsSql -> System.Data.SqlClient

Peachpie.Runtime itself does not reference any Sql assemblies.

This is the dependency tree of a compiled PHP application, with <DisableImplicitPeachpieReferences>false</DisableImplicitPeachpieReferences> (default)

image

from peachpie.

mhoeper avatar mhoeper commented on May 27, 2024

Thank you, its working good now!

I was referencing Peachpie.NET.Sdk by package reference as below in msbuildproj file:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
	<DisableImplicitPeachpieReferences>true</DisableImplicitPeachpieReferences>  
  </PropertyGroup>  
  <ItemGroup>
    <PackageReference Include="Peachpie.NET.Sdk" Version="1.1.7" PrivateAssets="Build" />
  </ItemGroup>
</Project>

This way its still adding System.Data.SqlClient. When changing to the below, System.Data.SqlClient no longer being included...

<Project Sdk="Peachpie.NET.Sdk/1.1.9">
  <PropertyGroup>
	<DisableImplicitPeachpieReferences>true</DisableImplicitPeachpieReferences>
  </PropertyGroup>
</Project>

from peachpie.

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.