问:
Unable to Include Own NuGet Package in Project (Winform)
I'm kind of new to NuGet.
So, I have this Winform project where I need to use my own published NuGet Package (a class library which also use winform). I installed my package to the project, but I was unable to include the package in my project. It keeps getting the error:

This is the published package and its code.

```<code>//Nuget Package, from file WhatsappContactLib-NETFramework.csproj, different solution than the main project
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WhatsappContactLibNETF
{
    public class WhatsappContactLib
    {
        private void sendWhatsapp(string number, string message)
        {
            try
            {
                if(number == "")
                {
                    MessageBox.Show("No number assigned to this person. Please contact your admin.");
                }
                if(number.Length <= 0)
                {
                    number = "+62" + number;
                }
                number = number.Replace(" ", "");
                number = number.Replace("-", "");
                System.Diagnostics.Process.Start("https://api.whatsapp.com/send?phone=" + number + "&text-" + message);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }

    }
}

</code>```

This is the code where I will use the mentioned NuGet Package:

```<code>//Winform code in the main project
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WhatsappContactLibNETF; //red squiggly lines here, with the error above mentioned

namespace DTETI_Room_Booker.Forms
{
    public partial class FormContact : Form
    {
        private string number1 = "+6281234567890"
        public FormContact()
        {
            InitializeComponent();
            LoadTheme();
        }
        public void LoadTheme()
        {
            foreach (Control btns in this.Controls)
            {
                if (btns.GetType() == typeof(Button))
                {
                    Button btn = (Button)btns;
                    btn.BackColor = ThemeColor.PrimaryColor;
                    btn.ForeColor = Color.White;
                    btn.FlatAppearance.BorderColor = ThemeColor.SecondaryColor;
                }
            }
        }

        private void lblContact1_Click(object sender, EventArgs e)
        {
            WhatsappContactLib.sendWhatsapp(number1, txtBoxMessage1.Text); //does not exist in current context
        }

        private void btnSend1_Click(object sender, EventArgs e)
        {

        }

        private void btnSend2_Click(object sender, EventArgs e)
        {

        }

        private void btnSend3_Click(object sender, EventArgs e)
        {

        }

    }
}

</code>```

I don't get where I went wrong, because in Microsoft tutorial I should only need to use using  and then use the package. Any answer would be helpful, thanks in advance.

Edit 1:
Here is the csproj file.

```<code>//csproj file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProjectGuid>{90427756-2539-4A22-94D0-187955C98A4B}</ProjectGuid>
    <OutputType>WinExe</OutputType>
    <RootNamespace>DTETI_Room_Booker</RootNamespace>
    <AssemblyName>DTETI Room Booker</AssemblyName>
    <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
    <Deterministic>true</Deterministic>
    <TargetFrameworkProfile />
    <IsWebBootstrapper>false</IsWebBootstrapper>
    <PublishUrl>publish\</PublishUrl>
    <Install>true</Install>
    <InstallFrom>Disk</InstallFrom>
    <UpdateEnabled>false</UpdateEnabled>
    <UpdateMode>Foreground</UpdateMode>
    <UpdateInterval>7</UpdateInterval>
    <UpdateIntervalUnits>Days</UpdateIntervalUnits>
    <UpdatePeriodically>false</UpdatePeriodically>
    <UpdateRequired>false</UpdateRequired>
    <MapFileExtensions>true</MapFileExtensions>
    <ApplicationRevision>0</ApplicationRevision>
    <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
    <UseApplicationTrust>false</UseApplicationTrust>
    <BootstrapperEnabled>true</BootstrapperEnabled>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="WhatsappContactLibNETF" Version="1.1.0" />
  </ItemGroup>
  <ItemGroup>
    <Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.1.1.1\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Bcl.HashCode, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Bcl.HashCode.1.1.1\lib\net461\Microsoft.Bcl.HashCode.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Data.Sqlite, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Data.Sqlite.Core.3.1.32\lib\netstandard2.0\Microsoft.Data.Sqlite.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.DotNet.PlatformAbstractions, Version=3.1.6.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.DotNet.PlatformAbstractions.3.1.6\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.EntityFrameworkCore, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.EntityFrameworkCore.3.1.32\lib\netstandard2.0\Microsoft.EntityFrameworkCore.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.EntityFrameworkCore.Abstractions, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.EntityFrameworkCore.Abstractions.3.1.32\lib\netstandard2.0\Microsoft.EntityFrameworkCore.Abstractions.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.EntityFrameworkCore.Relational, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.EntityFrameworkCore.Relational.3.1.32\lib\netstandard2.0\Microsoft.EntityFrameworkCore.Relational.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.EntityFrameworkCore.Sqlite, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.EntityFrameworkCore.Sqlite.Core.3.1.32\lib\netstandard2.0\Microsoft.EntityFrameworkCore.Sqlite.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.Caching.Abstractions, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.Caching.Abstractions.3.1.32\lib\netstandard2.0\Microsoft.Extensions.Caching.Abstractions.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.Caching.Memory, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.Caching.Memory.3.1.32\lib\netstandard2.0\Microsoft.Extensions.Caching.Memory.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.Configuration, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.Configuration.3.1.32\lib\netstandard2.0\Microsoft.Extensions.Configuration.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.Configuration.Abstractions, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.Configuration.Abstractions.3.1.32\lib\netstandard2.0\Microsoft.Extensions.Configuration.Abstractions.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.Configuration.Binder, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.Configuration.Binder.3.1.32\lib\netstandard2.0\Microsoft.Extensions.Configuration.Binder.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.DependencyInjection, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.DependencyInjection.3.1.32\lib\net461\Microsoft.Extensions.DependencyInjection.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.DependencyInjection.Abstractions.3.1.32\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.DependencyModel, Version=3.1.25.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.DependencyModel.3.1.25\lib\net451\Microsoft.Extensions.DependencyModel.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.Logging, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.Logging.3.1.32\lib\netstandard2.0\Microsoft.Extensions.Logging.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.Logging.Abstractions, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.Logging.Abstractions.3.1.32\lib\netstandard2.0\Microsoft.Extensions.Logging.Abstractions.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.Options, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.Options.3.1.32\lib\netstandard2.0\Microsoft.Extensions.Options.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.Primitives, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.Primitives.3.1.32\lib\netstandard2.0\Microsoft.Extensions.Primitives.dll</HintPath>
    </Reference>
    <Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
      <HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
    </Reference>
    <Reference Include="SQLitePCLRaw.batteries_v2, Version=2.1.2.1721, Culture=neutral, PublicKeyToken=8226ea5df37bcae9, processorArchitecture=MSIL">
      <HintPath>..\packages\SQLitePCLRaw.bundle_e_sqlite3.2.1.2\lib\net461\SQLitePCLRaw.batteries_v2.dll</HintPath>
    </Reference>
    <Reference Include="SQLitePCLRaw.core, Version=2.1.2.1721, Culture=neutral, PublicKeyToken=1488e028ca7ab535, processorArchitecture=MSIL">
      <HintPath>..\packages\SQLitePCLRaw.core.2.1.2\lib\netstandard2.0\SQLitePCLRaw.core.dll</HintPath>
    </Reference>
    <Reference Include="SQLitePCLRaw.provider.dynamic_cdecl, Version=2.1.2.1721, Culture=neutral, PublicKeyToken=b68184102cba0b3b, processorArchitecture=MSIL">
      <HintPath>..\packages\SQLitePCLRaw.provider.dynamic_cdecl.2.1.2\lib\netstandard2.0\SQLitePCLRaw.provider.dynamic_cdecl.dll</HintPath>
    </Reference>
    <Reference Include="System">
      <HintPath>C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.dll</HintPath>
    </Reference>
    <Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
    </Reference>
    <Reference Include="System.Collections.Immutable, Version=1.2.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Collections.Immutable.1.7.1\lib\net461\System.Collections.Immutable.dll</HintPath>
    </Reference>
    <Reference Include="System.ComponentModel.Annotations, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
      <HintPath>..\packages\System.ComponentModel.Annotations.4.7.0\lib\net461\System.ComponentModel.Annotations.dll</HintPath>
    </Reference>
    <Reference Include="System.ComponentModel.DataAnnotations" />
    <Reference Include="System.Core" />
    <Reference Include="System.Diagnostics.DiagnosticSource, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Diagnostics.DiagnosticSource.4.7.1\lib\net46\System.Diagnostics.DiagnosticSource.dll</HintPath>
    </Reference>
    <Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll</HintPath>
    </Reference>
    <Reference Include="System.Numerics" />
    <Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
    </Reference>
    <Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.7.1\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
    </Reference>
    <Reference Include="System.Runtime.InteropServices.RuntimeInformation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Runtime.InteropServices.RuntimeInformation.4.0.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll</HintPath>
      <Private>True</Private>
      <Private>True</Private>
    </Reference>
    <Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
    </Reference>
    <Reference Include="System.Xml.Linq" />
    <Reference Include="System.Data.DataSetExtensions" />
    <Reference Include="Microsoft.CSharp" />
    <Reference Include="System.Data" />
    <Reference Include="System.Deployment" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Net.Http" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="FormMainMenu.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="FormMainMenu.Designer.cs">
      <DependentUpon>FormMainMenu.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\FormAccount.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms\FormAccount.Designer.cs">
      <DependentUpon>FormAccount.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\FormContact.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms\FormContact.Designer.cs">
      <DependentUpon>FormContact.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\FormFAQ.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms\FormFAQ.Designer.cs">
      <DependentUpon>FormFAQ.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\FormHome.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms\FormHome.Designer.cs">
      <DependentUpon>FormHome.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\FormRooms.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms\FormRooms.Designer.cs">
      <DependentUpon>FormRooms.cs</DependentUpon>
    </Compile>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="ThemeColor.cs" />
    <EmbeddedResource Include="FormMainMenu.resx">
      <DependentUpon>FormMainMenu.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\FormAccount.resx">
      <DependentUpon>FormAccount.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\FormContact.resx">
      <DependentUpon>FormContact.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\FormFAQ.resx">
      <DependentUpon>FormFAQ.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\FormHome.resx">
      <DependentUpon>FormHome.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\FormRooms.resx">
      <DependentUpon>FormRooms.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Properties\Resources.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <Compile Include="Properties\Resources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Resources.resx</DependentUpon>
      <DesignTime>True</DesignTime>
    </Compile>
    <None Include="packages.config" />
    <None Include="Properties\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
    </None>
    <Compile Include="Properties\Settings.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Settings.settings</DependentUpon>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <None Include="App.config" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\images\dteti-transparent.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Arrow-1.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Help-1.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Home-1.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\List-1.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Phone-1.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Write-1.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\Home-1.bmp" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Arrow-1.bmp" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Help-1.bmp" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Home-1.bmp" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\List-1.bmp" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Phone-1.bmp" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Write-1.bmp" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\images\RoomPicture\meeting-room.jpeg" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="assets\images\RoomPicture\discussionRoom.jpg" />
    <Content Include="AccountsDatabase.mdf">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Content>
    <Content Include="AccountsDatabase_log.ldf">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
      <DependentUpon>AccountsDatabase.mdf</DependentUpon>
    </Content>
  </ItemGroup>
  <ItemGroup>
    <BootstrapperPackage Include=".NETFramework,Version=v4.8">
      <Visible>False</Visible>
      <ProductName>Microsoft .NET Framework 4.8 %28x86 and x64%29</ProductName>
      <Install>true</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.5 SP1</ProductName>
      <Install>false</Install>
    </BootstrapperPackage>
  </ItemGroup>
  <ItemGroup>
    <WCFMetadata Include="Connected Services\" />
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
</code>```

Body:
I'm kind of new to NuGet.
So, I have this Winform project where I need to use my own published NuGet Package (a class library which also use winform). I installed my package to the project, but I was unable to include the package in my project. It keeps getting the error:

This is the published package and its code.

//Nuget Package, from file WhatsappContactLib-NETFramework.csproj, different solution than the main project
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WhatsappContactLibNETF
{
    public class WhatsappContactLib
    {
        private void sendWhatsapp(string number, string message)
        {
            try
            {
                if(number == "")
                {
                    MessageBox.Show("No number assigned to this person. Please contact your admin.");
                }
                if(number.Length <= 0)
                {
                    number = "+62" + number;
                }
                number = number.Replace(" ", "");
                number = number.Replace("-", "");
                System.Diagnostics.Process.Start("https://api.whatsapp.com/send?phone=" + number + "&text-" + message);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }

    }
}

This is the code where I will use the mentioned NuGet Package:

//Winform code in the main project
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WhatsappContactLibNETF; //red squiggly lines here, with the error above mentioned

namespace DTETI_Room_Booker.Forms
{
    public partial class FormContact : Form
    {
        private string number1 = "+6281234567890"
        public FormContact()
        {
            InitializeComponent();
            LoadTheme();
        }
        public void LoadTheme()
        {
            foreach (Control btns in this.Controls)
            {
                if (btns.GetType() == typeof(Button))
                {
                    Button btn = (Button)btns;
                    btn.BackColor = ThemeColor.PrimaryColor;
                    btn.ForeColor = Color.White;
                    btn.FlatAppearance.BorderColor = ThemeColor.SecondaryColor;
                }
            }
        }

        private void lblContact1_Click(object sender, EventArgs e)
        {
            WhatsappContactLib.sendWhatsapp(number1, txtBoxMessage1.Text); //does not exist in current context
        }

        private void btnSend1_Click(object sender, EventArgs e)
        {

        }

        private void btnSend2_Click(object sender, EventArgs e)
        {

        }

        private void btnSend3_Click(object sender, EventArgs e)
        {

        }

    }
}

I don't get where I went wrong, because in Microsoft tutorial I should only need to use using  and then use the package. Any answer would be helpful, thanks in advance.

Edit 1:
Here is the csproj file.

//csproj file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProjectGuid>{90427756-2539-4A22-94D0-187955C98A4B}</ProjectGuid>
    <OutputType>WinExe</OutputType>
    <RootNamespace>DTETI_Room_Booker</RootNamespace>
    <AssemblyName>DTETI Room Booker</AssemblyName>
    <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
    <Deterministic>true</Deterministic>
    <TargetFrameworkProfile />
    <IsWebBootstrapper>false</IsWebBootstrapper>
    <PublishUrl>publish\</PublishUrl>
    <Install>true</Install>
    <InstallFrom>Disk</InstallFrom>
    <UpdateEnabled>false</UpdateEnabled>
    <UpdateMode>Foreground</UpdateMode>
    <UpdateInterval>7</UpdateInterval>
    <UpdateIntervalUnits>Days</UpdateIntervalUnits>
    <UpdatePeriodically>false</UpdatePeriodically>
    <UpdateRequired>false</UpdateRequired>
    <MapFileExtensions>true</MapFileExtensions>
    <ApplicationRevision>0</ApplicationRevision>
    <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
    <UseApplicationTrust>false</UseApplicationTrust>
    <BootstrapperEnabled>true</BootstrapperEnabled>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="WhatsappContactLibNETF" Version="1.1.0" />
  </ItemGroup>
  <ItemGroup>
    <Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.1.1.1\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Bcl.HashCode, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Bcl.HashCode.1.1.1\lib\net461\Microsoft.Bcl.HashCode.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Data.Sqlite, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Data.Sqlite.Core.3.1.32\lib\netstandard2.0\Microsoft.Data.Sqlite.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.DotNet.PlatformAbstractions, Version=3.1.6.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.DotNet.PlatformAbstractions.3.1.6\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.EntityFrameworkCore, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.EntityFrameworkCore.3.1.32\lib\netstandard2.0\Microsoft.EntityFrameworkCore.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.EntityFrameworkCore.Abstractions, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.EntityFrameworkCore.Abstractions.3.1.32\lib\netstandard2.0\Microsoft.EntityFrameworkCore.Abstractions.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.EntityFrameworkCore.Relational, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.EntityFrameworkCore.Relational.3.1.32\lib\netstandard2.0\Microsoft.EntityFrameworkCore.Relational.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.EntityFrameworkCore.Sqlite, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.EntityFrameworkCore.Sqlite.Core.3.1.32\lib\netstandard2.0\Microsoft.EntityFrameworkCore.Sqlite.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.Caching.Abstractions, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.Caching.Abstractions.3.1.32\lib\netstandard2.0\Microsoft.Extensions.Caching.Abstractions.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.Caching.Memory, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.Caching.Memory.3.1.32\lib\netstandard2.0\Microsoft.Extensions.Caching.Memory.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.Configuration, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.Configuration.3.1.32\lib\netstandard2.0\Microsoft.Extensions.Configuration.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.Configuration.Abstractions, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.Configuration.Abstractions.3.1.32\lib\netstandard2.0\Microsoft.Extensions.Configuration.Abstractions.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.Configuration.Binder, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.Configuration.Binder.3.1.32\lib\netstandard2.0\Microsoft.Extensions.Configuration.Binder.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.DependencyInjection, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.DependencyInjection.3.1.32\lib\net461\Microsoft.Extensions.DependencyInjection.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.DependencyInjection.Abstractions.3.1.32\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.DependencyModel, Version=3.1.25.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.DependencyModel.3.1.25\lib\net451\Microsoft.Extensions.DependencyModel.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.Logging, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.Logging.3.1.32\lib\netstandard2.0\Microsoft.Extensions.Logging.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.Logging.Abstractions, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.Logging.Abstractions.3.1.32\lib\netstandard2.0\Microsoft.Extensions.Logging.Abstractions.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.Options, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.Options.3.1.32\lib\netstandard2.0\Microsoft.Extensions.Options.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Extensions.Primitives, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Extensions.Primitives.3.1.32\lib\netstandard2.0\Microsoft.Extensions.Primitives.dll</HintPath>
    </Reference>
    <Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
      <HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
    </Reference>
    <Reference Include="SQLitePCLRaw.batteries_v2, Version=2.1.2.1721, Culture=neutral, PublicKeyToken=8226ea5df37bcae9, processorArchitecture=MSIL">
      <HintPath>..\packages\SQLitePCLRaw.bundle_e_sqlite3.2.1.2\lib\net461\SQLitePCLRaw.batteries_v2.dll</HintPath>
    </Reference>
    <Reference Include="SQLitePCLRaw.core, Version=2.1.2.1721, Culture=neutral, PublicKeyToken=1488e028ca7ab535, processorArchitecture=MSIL">
      <HintPath>..\packages\SQLitePCLRaw.core.2.1.2\lib\netstandard2.0\SQLitePCLRaw.core.dll</HintPath>
    </Reference>
    <Reference Include="SQLitePCLRaw.provider.dynamic_cdecl, Version=2.1.2.1721, Culture=neutral, PublicKeyToken=b68184102cba0b3b, processorArchitecture=MSIL">
      <HintPath>..\packages\SQLitePCLRaw.provider.dynamic_cdecl.2.1.2\lib\netstandard2.0\SQLitePCLRaw.provider.dynamic_cdecl.dll</HintPath>
    </Reference>
    <Reference Include="System">
      <HintPath>C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.dll</HintPath>
    </Reference>
    <Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
    </Reference>
    <Reference Include="System.Collections.Immutable, Version=1.2.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Collections.Immutable.1.7.1\lib\net461\System.Collections.Immutable.dll</HintPath>
    </Reference>
    <Reference Include="System.ComponentModel.Annotations, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
      <HintPath>..\packages\System.ComponentModel.Annotations.4.7.0\lib\net461\System.ComponentModel.Annotations.dll</HintPath>
    </Reference>
    <Reference Include="System.ComponentModel.DataAnnotations" />
    <Reference Include="System.Core" />
    <Reference Include="System.Diagnostics.DiagnosticSource, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Diagnostics.DiagnosticSource.4.7.1\lib\net46\System.Diagnostics.DiagnosticSource.dll</HintPath>
    </Reference>
    <Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll</HintPath>
    </Reference>
    <Reference Include="System.Numerics" />
    <Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
    </Reference>
    <Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.7.1\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
    </Reference>
    <Reference Include="System.Runtime.InteropServices.RuntimeInformation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Runtime.InteropServices.RuntimeInformation.4.0.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll</HintPath>
      <Private>True</Private>
      <Private>True</Private>
    </Reference>
    <Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
    </Reference>
    <Reference Include="System.Xml.Linq" />
    <Reference Include="System.Data.DataSetExtensions" />
    <Reference Include="Microsoft.CSharp" />
    <Reference Include="System.Data" />
    <Reference Include="System.Deployment" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Net.Http" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="FormMainMenu.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="FormMainMenu.Designer.cs">
      <DependentUpon>FormMainMenu.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\FormAccount.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms\FormAccount.Designer.cs">
      <DependentUpon>FormAccount.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\FormContact.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms\FormContact.Designer.cs">
      <DependentUpon>FormContact.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\FormFAQ.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms\FormFAQ.Designer.cs">
      <DependentUpon>FormFAQ.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\FormHome.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms\FormHome.Designer.cs">
      <DependentUpon>FormHome.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\FormRooms.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms\FormRooms.Designer.cs">
      <DependentUpon>FormRooms.cs</DependentUpon>
    </Compile>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="ThemeColor.cs" />
    <EmbeddedResource Include="FormMainMenu.resx">
      <DependentUpon>FormMainMenu.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\FormAccount.resx">
      <DependentUpon>FormAccount.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\FormContact.resx">
      <DependentUpon>FormContact.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\FormFAQ.resx">
      <DependentUpon>FormFAQ.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\FormHome.resx">
      <DependentUpon>FormHome.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\FormRooms.resx">
      <DependentUpon>FormRooms.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Properties\Resources.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <Compile Include="Properties\Resources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Resources.resx</DependentUpon>
      <DesignTime>True</DesignTime>
    </Compile>
    <None Include="packages.config" />
    <None Include="Properties\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
    </None>
    <Compile Include="Properties\Settings.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Settings.settings</DependentUpon>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <None Include="App.config" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\images\dteti-transparent.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Arrow-1.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Help-1.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Home-1.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\List-1.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Phone-1.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Write-1.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\Home-1.bmp" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Arrow-1.bmp" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Help-1.bmp" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Home-1.bmp" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\List-1.bmp" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Phone-1.bmp" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\icons\Write-1.bmp" />
  </ItemGroup>
  <ItemGroup>
    <None Include="assets\images\RoomPicture\meeting-room.jpeg" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="assets\images\RoomPicture\discussionRoom.jpg" />
    <Content Include="AccountsDatabase.mdf">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Content>
    <Content Include="AccountsDatabase_log.ldf">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
      <DependentUpon>AccountsDatabase.mdf</DependentUpon>
    </Content>
  </ItemGroup>
  <ItemGroup>
    <BootstrapperPackage Include=".NETFramework,Version=v4.8">
      <Visible>False</Visible>
      <ProductName>Microsoft .NET Framework 4.8 %28x86 and x64%29</ProductName>
      <Install>true</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.5 SP1</ProductName>
      <Install>false</Install>
    </BootstrapperPackage>
  </ItemGroup>
  <ItemGroup>
    <WCFMetadata Include="Connected Services\" />
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>


来源: stackexchange

问:
ADF HANA View partition columns
I am trying to extract data from  a HANA view using ADF HANA connector. In the partition option(inside copy activity), I am using dynamic range partitioning by passing a partition column. While doing so, I am getting the below error :-

ErrorCode=SapHanaFailToGetBoundsDueToInvalidQuery,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Fail
to get bounds by using query. Make sure your query can be nested while
using partition reading and your partition column data type is
acceptable.,Source=Microsoft.DataTransfer.Runtime.SapHanaConnector,''Type=System.Data.Odbc.OdbcException,Message=ERROR
[S1000] [SAP AG][LIBODBCHDB DLL][HDBODBC] General error;260 invalid
column name: FISCALYR: line 4 col 60 (at pos 530),Source=libodbcHDB.dll,'

I tried using a different partition column, but that also gives the same error. Can anyone let me know the possible cause?

Below is the copy activity input log

{
"source": {
"type": "SapHanaSource",
"query": "select\r\n"COCD" as BUKRS,\r\n"ASSETNBR" as ANLN1,\r\n"ASSETSUBNUMB" as ANLN2,\r\n"FISCALYR" as
GJAHR,\r\n"REALDEPRAREA" as AFABE,\r\n"DEPRLASTPOST" as
AFBLPE,\r\n"DEPRPERDPOST" as AFBANZ,\r\n"FISCALYREXPR" as
\r\nFROM
"_SYS_BIC"."intel.finance.private/AssetValueHistoricView" WHERE
?AdfHanaDynamicRangePartitionCondition",
"partitionOption": "SapHanaDynamicRange",
"partitionSettings": {
"partitionColumnName": "FISCALYR"
}
},
"sink": {
"type": "ParquetSink",
"storeSettings": {
"type": "AzureBlobFSWriteSettings"
},
"formatSettings": {
"type": "ParquetWriteSettings"
}
},
"enableStaging": false,
"parallelCopies": 20,
"translator": {
"type": "TabularTranslator",
"typeConversion": true,
"typeConversionSettings": {
"allowDataTruncation": true,
"treatBooleanAsNumber": false
}
} }

ContentLicense: CC BY-SA 4.0

Title: ADF HANA View partition columns


问:
Schema.name undefined while making Many-To-One relation reference with Nestjs & MongoDb
I want to attach and see all the posts of the user inside posts property of UserSchema. The user/Author id is getting stored with posts. But when I try the get posts ids

I'm getting the following error.

```<code>  @Prop([{ type: mongoose.Schema.Types.ObjectId, ref: BlogPost.name }])
                                                               ^
TypeError: Cannot read properties of undefined (reading 'name')
    at Object.<anonymous> (D:\Noum\Data\CYBRNODE\MAN STACK\Cybrnode-Blog-Backend\Cybr-Blog-Nest-Backend\src\schema\user.schema.ts:45:64)
    at Module._compile (node:internal/modules/cjs/loader:1126:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
    at Module.load (node:internal/modules/cjs/loader:1004:32)
</code>```

Blog Schema

```<code>import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { ApiProperty } from '@nestjs/swagger';
import mongoose, { Document } from 'mongoose';

import { User } from 'src/schema/user.schema';

@Schema({ timestamps: true })
export class BlogPost {

  @ApiProperty({ required: true })
  @Prop({ type: mongoose.Schema.Types.ObjectId, ref: User.name })
  author: User;

}

export const postSchema = SchemaFactory.createForClass(BlogPost);
export type postDocument = BlogPost & Document;
</code>```

User Schema

```<code>import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { ApiProperty } from '@nestjs/swagger';
import mongoose, { Document } from 'mongoose';

import { BlogPost } from 'src/schema/blog.schema';

@Schema({ timestamps: true })
export class User {
  @ApiProperty()
  @Prop([{ type: mongoose.Schema.Types.ObjectId, ref: BlogPost.name }])
  posts: BlogPost[];
}

export const userSchema = SchemaFactory.createForClass(User);
export type userDocument = User & Document;
</code>```

Also I've imported UserModule into BlogPostModule and vice versa. And exported the services of both modules.

I've tried with these as well. But Error is same

```<code>import { Document, Schema as MongooseSchema } from 'mongoose';
export class User extends Document{
 @ApiProperty()
  @Prop([{ type:  MongooseSchema.Types.ObjectId, ref: BlogPost.name }])
  posts: BlogPost[];

}

export const userSchema = SchemaFactory.createForClass(User);
export type userDocument = User & Document;
</code>```

Body:
I want to attach and see all the posts of the user inside posts property of UserSchema. The user/Author id is getting stored with posts. But when I try the get posts ids

I'm getting the following error.

  @Prop([{ type: mongoose.Schema.Types.ObjectId, ref: BlogPost.name }])
                                                               ^
TypeError: Cannot read properties of undefined (reading 'name')
    at Object.<anonymous> (D:\Noum\Data\CYBRNODE\MAN STACK\Cybrnode-Blog-Backend\Cybr-Blog-Nest-Backend\src\schema\user.schema.ts:45:64)
    at Module._compile (node:internal/modules/cjs/loader:1126:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
    at Module.load (node:internal/modules/cjs/loader:1004:32)

Blog Schema

import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { ApiProperty } from '@nestjs/swagger';
import mongoose, { Document } from 'mongoose';

import { User } from 'src/schema/user.schema';

@Schema({ timestamps: true })
export class BlogPost {

  @ApiProperty({ required: true })
  @Prop({ type: mongoose.Schema.Types.ObjectId, ref: User.name })
  author: User;

}

export const postSchema = SchemaFactory.createForClass(BlogPost);
export type postDocument = BlogPost & Document;

User Schema

import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { ApiProperty } from '@nestjs/swagger';
import mongoose, { Document } from 'mongoose';

import { BlogPost } from 'src/schema/blog.schema';

@Schema({ timestamps: true })
export class User {
  @ApiProperty()
  @Prop([{ type: mongoose.Schema.Types.ObjectId, ref: BlogPost.name }])
  posts: BlogPost[];
}

export const userSchema = SchemaFactory.createForClass(User);
export type userDocument = User & Document;

Also I've imported UserModule into BlogPostModule and vice versa. And exported the services of both modules.

I've tried with these as well. But Error is same

import { Document, Schema as MongooseSchema } from 'mongoose';
export class User extends Document{
 @ApiProperty()
  @Prop([{ type:  MongooseSchema.Types.ObjectId, ref: BlogPost.name }])
  posts: BlogPost[];

}

export const userSchema = SchemaFactory.createForClass(User);
export type userDocument = User & Document;


问:
Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found (FlutterPaystackPlugin.h)
I have been trying to get my project to run on IOS, however the app can never compile due to this issue. I am using paystack in my app, and the issue seems to be coming from trying to import "Flutter/Flutter.h" in the "FlutterPaystackPlugin.h" file

I'm running Xcode 13.2, as this is the latest version of Xcode that my Mac allows me to run.

I've tried all the fixes relating to this issue, such as reinstalling the pod file and cocoa pods, updating all my packages etc. Nothing seems to work. I suspect that this might get resolved if I update the the latest version of Xcode on a newer mac, but I'm not sure.

Any guidance would be much appreciated, thanks!

The terminal displays the following:

```<code>Xcode's output:
↳
    Writing result bundle at path:
        /var/folders/kh/_1d27hws6b9_sn5cffmtwqyw0000gn/T/flutter_tools.2uoDII/flutter_ios_build_temp_dirNxtCwa/temporary_xcresult_bundle

    /Users/Alex/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.1/ios/Classes/messages.g.m:7:9: fatal error:
    'Flutter/Flutter.h' file not found
    #import <Flutter/Flutter.h>
            ^~~~~~~~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in dependency order
    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/firebase_cor
    e/firebase_core.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/firebase_dat
    abase/firebase_database.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/firebase_aut
    h/firebase_auth.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Pods_Runner.
    framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/awesome_noti
    fications/awesome_notifications.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/GoogleUtilit
    ies/GoogleUtilities.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/FirebaseData
    base/FirebaseDatabase.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/FirebaseCore
    Internal/FirebaseCoreInternal.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/FirebaseCore
    /FirebaseCore.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/FirebaseAuth
    /FirebaseAuth.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.app'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.swift
    module/Project/x86_64-apple-ios-simulator.swiftsourceinfo'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.swift
    module/Project/x86_64.swiftsourceinfo'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.swift
    module/x86_64-apple-ios-simulator.swiftdoc'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.swift
    module/x86_64-apple-ios-simulator.swiftmodule'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.swift
    module/x86_64.swiftdoc'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.swift
    module/x86_64.swiftmodule'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/leveldb-libr
    ary/leveldb.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/IosAwnCore/I
    osAwnCore.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/PromisesObjC
    /FBLPromises.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/GTMSessionFe
    tcher/GTMSessionFetcher.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/flutter_pays
    tack/flutter_paystack.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/shared_prefe
    rences_ios/shared_preferences_ios.framework'

    Result bundle written to path:
        /var/folders/kh/_1d27hws6b9_sn5cffmtwqyw0000gn/T/flutter_tools.2uoDII/flutter_ios_build_temp_dirNxtCwa/temporary_xcresult_bundle

Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/Alex/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.1/ios/Classes/messages.g.m:6:8

Could not build the application for the simulator.
Error launching application on iPhone 13.
Alex@MacBook-Pro-Alex ios %
</code>```

Body:
I have been trying to get my project to run on IOS, however the app can never compile due to this issue. I am using paystack in my app, and the issue seems to be coming from trying to import "Flutter/Flutter.h" in the "FlutterPaystackPlugin.h" file

I'm running Xcode 13.2, as this is the latest version of Xcode that my Mac allows me to run.

I've tried all the fixes relating to this issue, such as reinstalling the pod file and cocoa pods, updating all my packages etc. Nothing seems to work. I suspect that this might get resolved if I update the the latest version of Xcode on a newer mac, but I'm not sure.

Any guidance would be much appreciated, thanks!

The terminal displays the following:

Xcode's output:
↳
    Writing result bundle at path:
        /var/folders/kh/_1d27hws6b9_sn5cffmtwqyw0000gn/T/flutter_tools.2uoDII/flutter_ios_build_temp_dirNxtCwa/temporary_xcresult_bundle

    /Users/Alex/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.1/ios/Classes/messages.g.m:7:9: fatal error:
    'Flutter/Flutter.h' file not found
    #import <Flutter/Flutter.h>
            ^~~~~~~~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in dependency order
    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/firebase_cor
    e/firebase_core.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/firebase_dat
    abase/firebase_database.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/firebase_aut
    h/firebase_auth.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Pods_Runner.
    framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/awesome_noti
    fications/awesome_notifications.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/GoogleUtilit
    ies/GoogleUtilities.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/FirebaseData
    base/FirebaseDatabase.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/FirebaseCore
    Internal/FirebaseCoreInternal.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/FirebaseCore
    /FirebaseCore.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/FirebaseAuth
    /FirebaseAuth.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.app'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.swift
    module/Project/x86_64-apple-ios-simulator.swiftsourceinfo'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.swift
    module/Project/x86_64.swiftsourceinfo'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.swift
    module/x86_64-apple-ios-simulator.swiftdoc'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.swift
    module/x86_64-apple-ios-simulator.swiftmodule'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.swift
    module/x86_64.swiftdoc'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.swift
    module/x86_64.swiftmodule'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/leveldb-libr
    ary/leveldb.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/IosAwnCore/I
    osAwnCore.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/PromisesObjC
    /FBLPromises.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/GTMSessionFe
    tcher/GTMSessionFetcher.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/flutter_pays
    tack/flutter_paystack.framework'

    note: Removed stale file
    '/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/shared_prefe
    rences_ios/shared_preferences_ios.framework'

    Result bundle written to path:
        /var/folders/kh/_1d27hws6b9_sn5cffmtwqyw0000gn/T/flutter_tools.2uoDII/flutter_ios_build_temp_dirNxtCwa/temporary_xcresult_bundle

Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/Alex/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.1/ios/Classes/messages.g.m:6:8

Could not build the application for the simulator.
Error launching application on iPhone 13.
Alex@MacBook-Pro-Alex ios %


问:
Gradle 7 (Groovy 3) - method in a closure executed/called immediately
I am updating Gradle from 5.6.3 to 7.5.1. I have a gradle custom plugin that accepts a closure. And in my main application's builg.gradle I am calling that custom plugin's task and assigning value to that closure.

main project -

```<code>task(type: MyCustomTask, 'custom') {
  myClosure = {
    filesMatching('**/my.yaml') {
      filter { it.replace('${test}', 'TEST') }
    }
  }
  ...
}
</code>```

custom plugin -

```<code>@Input
@Optional
Closure myClosure = { }

private void copyFiles() {
  println "--------------------------Copying"
  project.copy {
    from "${project.projectDir}/src/main/resources"
    into "${buildDir}"
    final cl = myClosure.clone()
    cl.delegate = delegate
    cl()
  }
}

@TaskAction
def custom() {
  ...
  copyFiles()
  ...
}
</code>```

This is working fine with gradle 5 (groovy 2.5), but with gradle 7 (groovy 3) I am getting

Execution failed for task 'custom'.

Error while evaluating property 'myClosure' of task 'custom'
Could not find method filesMatching() for arguments [**/my.yaml, build_46x3acd2klzyjg008csx3dlg4$_run_closure1$_closure2$_closure5$_closure6@15088f00] on task 'custom' of type com.custom.gradle.plugin.tasks.TestTask.

Any suggestion here to fix the issue? Thank you!

Body:
I am updating Gradle from 5.6.3 to 7.5.1. I have a gradle custom plugin that accepts a closure. And in my main application's builg.gradle I am calling that custom plugin's task and assigning value to that closure.

main project -

task(type: MyCustomTask, 'custom') {
  myClosure = {
    filesMatching('**/my.yaml') {
      filter { it.replace('${test}', 'TEST') }
    }
  }
  ...
}

custom plugin -

@Input
@Optional
Closure myClosure = { }

private void copyFiles() {
  println "--------------------------Copying"
  project.copy {
    from "${project.projectDir}/src/main/resources"
    into "${buildDir}"
    final cl = myClosure.clone()
    cl.delegate = delegate
    cl()
  }
}

@TaskAction
def custom() {
  ...
  copyFiles()
  ...
}

This is working fine with gradle 5 (groovy 2.5), but with gradle 7 (groovy 3) I am getting

Execution failed for task 'custom'.

Error while evaluating property 'myClosure' of task 'custom'
Could not find method filesMatching() for arguments [**/my.yaml, build_46x3acd2klzyjg008csx3dlg4$_run_closure1$_closure2$_closure5$_closure6@15088f00] on task 'custom' of type com.custom.gradle.plugin.tasks.TestTask.

Any suggestion here to fix the issue? Thank you!


问:
Jest environment has been torn down error in graphql, nodejs project. Used jest.useFakeTimers but still getting the error
Getting ReferenceError: You are trying to import a file after the Jest environment has been torn down From office/test/office.test.ts.
Used jest.useFakeTimers(); after imports, but the issue still exists. Is there any way to resolve it ?

Here is my jest.config.ts

```<code>import type { Config } from "@jest/types"
const config: Config.InitialOptions = {
    transform: {
        '^.+\\.tsx?$': 'ts-jest'
    },
    testRegex: '(/__test__/.*|(\\.|/)(test|spec))\\.[jt]sx?$',
    moduleFileExtensions: [ 'js','ts'],
    testEnvironment: "jest-environment-node",
    fakeTimers: {
        enableGlobally: true,
      },
    verbose: true
}
export default config
</code>```

The test file office.test.ts

```<code>import {ApolloServer} from 'apollo-server'
import {expect,test,jest} from '@jest/globals';
import officeGql  from '../controllers/controller'
jest.useFakeTimers();
test('Office Module Test', async () => {
  let typeDefs = officeGql.types
  let resolvers = officeGql.resolvers
  let testServer = new ApolloServer({
    typeDefs,
    resolvers,
  });
   const response = await testServer.executeOperation({
     query: `query offices(limit: $limit,offset: $offset){name, address}`,
       variables: { limit: 10,offset:0 },
   });
   expect(response.data).toBeTruthy();
});
</code>```

Body:
Getting ReferenceError: You are trying to import a file after the Jest environment has been torn down From office/test/office.test.ts.
Used jest.useFakeTimers(); after imports, but the issue still exists. Is there any way to resolve it ?

Here is my jest.config.ts

import type { Config } from "@jest/types"
const config: Config.InitialOptions = {
    transform: {
        '^.+\\.tsx?$': 'ts-jest'
    },
    testRegex: '(/__test__/.*|(\\.|/)(test|spec))\\.[jt]sx?$',
    moduleFileExtensions: [ 'js','ts'],
    testEnvironment: "jest-environment-node",
    fakeTimers: {
        enableGlobally: true,
      },
    verbose: true
}
export default config

The test file office.test.ts

import {ApolloServer} from 'apollo-server'
import {expect,test,jest} from '@jest/globals';
import officeGql  from '../controllers/controller'
jest.useFakeTimers();
test('Office Module Test', async () => {
  let typeDefs = officeGql.types
  let resolvers = officeGql.resolvers
  let testServer = new ApolloServer({
    typeDefs,
    resolvers,
  });
   const response = await testServer.executeOperation({
     query: `query offices(limit: $limit,offset: $offset){name, address}`,
       variables: { limit: 10,offset:0 },
   });
   expect(response.data).toBeTruthy();
});


问:
plot decision boundary in python
I did a logistic regression on my data and now I find the best Theta array to find the class of a new data.

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

def h_theta(x,theta):
    return np.dot(x,np.transpose(theta))
def g_z(x,theta):
    return 1/(1+pow(np.e,-h_theta(x,theta)))
def cost_function(x,y,theta):
    cost = 0
    for i in range(len(y)):
        l = np.log(g_z(x[i],theta))
        cost += -y[i]*l -(1-y[i])*np.log((1-(g_z(x[i],theta))))
    return cost/(2*len(y))
def updata_theta(x,y,theta,alpha):
    for i in range(6):
        u = 0
        for j in range(len(y)):
            u += (h_theta(x[j],theta)-y[j])*x[j,i]
        theta[0,i] -= alpha*u/(len(y))

data = pd.read_csv("D:\REZA\programming\machine learning-andrew ng\coding\machine-learning-ex2\ex2\ex2data2.csv")
y = np.array(data["1"])
s = np.array(data.drop("1",axis=1))
x1T2 = np.zeros((117,1))
x2T2 = np.zeros((117,1))
x1x2 = np.zeros((117,1))
one = np.ones((117,1))
m = len(y)
for i in range(m):
    x1T2[i] = s[i,0]*s[i,0]
    x2T2[i] = s[i,1]*s[i,1]
    x1x2[i] = s[i,0]*s[i,1]
x = np.append(one,s,axis=1)
f = np.append(x1T2,x2T2,axis=1)
f = np.append(f,x1x2,axis=1)
x = np.append(x,f,axis=1)
x = np.array(x,dtype=np.float)

theta = np.zeros((1,6),dtype=float)

n=0
alpha = 0.003

while(n<100 and cost_function(x,y,theta)>0.01):
    updata_theta(x,y,theta,alpha)
    n+=1
```
<p>I can plot my data with plt.scatter</p>
```plt.scatter(x[:,1],x[:,2],c=y)
plt.show()
```

scatter plot output

Now I want to plot decision boundary using this theta array, but I don't know how to do it.

Title: plot decision boundary in python

Body:
I did a logistic regression on my data and now I find the best Theta array to find the class of a new data.

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

def h_theta(x,theta):
    return np.dot(x,np.transpose(theta))
def g_z(x,theta):
    return 1/(1+pow(np.e,-h_theta(x,theta)))
def cost_function(x,y,theta):
    cost = 0
    for i in range(len(y)):
        l = np.log(g_z(x[i],theta))
        cost += -y[i]*l -(1-y[i])*np.log((1-(g_z(x[i],theta))))
    return cost/(2*len(y))
def updata_theta(x,y,theta,alpha):
    for i in range(6):
        u = 0
        for j in range(len(y)):
            u += (h_theta(x[j],theta)-y[j])*x[j,i]
        theta[0,i] -= alpha*u/(len(y))

data = pd.read_csv("D:\REZA\programming\machine learning-andrew ng\coding\machine-learning-ex2\ex2\ex2data2.csv")
y = np.array(data["1"])
s = np.array(data.drop("1",axis=1))
x1T2 = np.zeros((117,1))
x2T2 = np.zeros((117,1))
x1x2 = np.zeros((117,1))
one = np.ones((117,1))
m = len(y)
for i in range(m):
    x1T2[i] = s[i,0]*s[i,0]
    x2T2[i] = s[i,1]*s[i,1]
    x1x2[i] = s[i,0]*s[i,1]
x = np.append(one,s,axis=1)
f = np.append(x1T2,x2T2,axis=1)
f = np.append(f,x1x2,axis=1)
x = np.append(x,f,axis=1)
x = np.array(x,dtype=np.float)

theta = np.zeros((1,6),dtype=float)

n=0
alpha = 0.003

while(n<100 and cost_function(x,y,theta)>0.01):
    updata_theta(x,y,theta,alpha)
    n+=1

I can plot my data with plt.scatter

plt.scatter(x[:,1],x[:,2],c=y)
plt.show()

scatter plot output

Now I want to plot decision boundary using this theta array, but I don't know how to do it.


问:
Ubuntu22.04 makes Preempt_RT work but CONFIG_RT_GROUP_SCHED is not set
I followed the instructions on the official to compile the Linux kernel into a real-time system that can preempt low-priority work.

Due to some factors I need to use "CONFIG_RT_GROUP_SCHED". But when I searched for availability, the following results appeared:
CONFIG_RT_GROUP_SCHED is not set

Then I looked for related messages and found that it doesn't seem to be available.
What should I do next? Should I follow this article to compile the kernel to an older version? I don't think this is a good way.

This is my kernel version:5.15.0-1028-realtime


问:
How can I change the language of my app in runtime to "th" (Thai) using MultilingualPlugin [Xamarin on mac]?
I want to programmatically change the language of my App to "th" (Thai) in runtime.  My current code, shown below, is not working.  How can I do this?

First step I created helpers with this code:

```<code>using System;
using System.ComponentModel;
using System.Globalization;
using System.Reflection;
using System.Resources;
using Plugin.Multilingual;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;

namespace AMIMobile.Helpers
{
    [ContentProperty("Text")]
    public class TranslateExtension : IMarkupExtension
    {
        const string ResourceId = "AMIMobile.AppResources";

        static readonly Lazy<ResourceManager> resmgr = new Lazy<ResourceManager>(() => new ResourceManager(ResourceId, typeof(TranslateExtension).GetTypeInfo().Assembly));

        public string Text { get; set; }

        public object ProvideValue(IServiceProvider serviceProvider)
        {
            if (Text == null)
                return "";

            var ci = CrossMultilingual.Current.CurrentCultureInfo;

            var translation = resmgr.Value.GetString(Text, ci);

            if (translation == null)
            {
#if DEBUG
                throw new ArgumentException(
                    String.Format("Key '{0}' was not found in resources '{1}' for culture      '{2}'.", Text, ResourceId, ci.Name),
                    "Text");
#else
                translation = Text; // returns the key, which GETS DISPLAYED TO THE USER
#endif
            }
            return translation;
        }
    }
}
</code>```

Next, I have AppResources with 2 files

AppResources

AppResource.th

They contain resources with the same names, but different values.

Then in my view I create xlmns like this :

```<code>   xmlns:helpers="clr-namespace:AMIMobile.Helpers"
</code>```

and binding with this

```<code>Text="{helpers:Translate Sign In}"
</code>```

The output is English, but I want to show the th (Thai) language, so I put the following code in App.cs

```<code>public App()
{
    InitializeComponent();
    CrossMultilingual.Current.CurrentCultureInfo = new CultureInfo("th");

    MainPage = new NavigationPage(new LoginPage());
}
</code>```

But the app does not change to th language.  What am I doing wring?

I want to switch language to th with AppResource.th

Body:
I want to programmatically change the language of my App to "th" (Thai) in runtime.  My current code, shown below, is not working.  How can I do this?

First step I created helpers with this code:

using System;
using System.ComponentModel;
using System.Globalization;
using System.Reflection;
using System.Resources;
using Plugin.Multilingual;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;

namespace AMIMobile.Helpers
{
    [ContentProperty("Text")]
    public class TranslateExtension : IMarkupExtension
    {
        const string ResourceId = "AMIMobile.AppResources";

        static readonly Lazy<ResourceManager> resmgr = new Lazy<ResourceManager>(() => new ResourceManager(ResourceId, typeof(TranslateExtension).GetTypeInfo().Assembly));

        public string Text { get; set; }

        public object ProvideValue(IServiceProvider serviceProvider)
        {
            if (Text == null)
                return "";

            var ci = CrossMultilingual.Current.CurrentCultureInfo;

            var translation = resmgr.Value.GetString(Text, ci);

            if (translation == null)
            {
#if DEBUG
                throw new ArgumentException(
                    String.Format("Key '{0}' was not found in resources '{1}' for culture      '{2}'.", Text, ResourceId, ci.Name),
                    "Text");
#else
                translation = Text; // returns the key, which GETS DISPLAYED TO THE USER
#endif
            }
            return translation;
        }
    }
}

Next, I have AppResources with 2 files

AppResources

AppResource.th

They contain resources with the same names, but different values.

Then in my view I create xlmns like this :

   xmlns:helpers="clr-namespace:AMIMobile.Helpers"

and binding with this

Text="{helpers:Translate Sign In}"

The output is English, but I want to show the th (Thai) language, so I put the following code in App.cs

public App()
{
    InitializeComponent();
    CrossMultilingual.Current.CurrentCultureInfo = new CultureInfo("th");

    MainPage = new NavigationPage(new LoginPage());
}

But the app does not change to th language.  What am I doing wring?

I want to switch language to th with AppResource.th


问:
abstract type 'Microsoft.Extensions.Options.IOptions'1' is not accessible for inheritance - UnitTests
I have a small problem with running the unit tests with dotnet CLI. I am using xUnit and JustMock.

I have a class called 'DevOpsOptions' which is a internal and located in UserManagement project.

Example:

```<code>    internal class DevOpsOptions
    {
        public string Username { get; set; }

        public string Password { get; set; }
    }
</code>```

I also have another project for unit tests, called UserManagement.Tests. I added reference to the UserManagement project and set InternalVisibility

Example:

```<code><ItemGroup>
        <InternalsVisibleTo Include="$(AssemblyName).Tests" />
</ItemGroup>
</code>```

I wrote a test that runs successfully if run the standard way. Right click -> Run tests
Example:

```<code>
        [Fact]
        public async void ThrowArgumentException_WhenUserEmailIsNull()
        {
            //Arrange
            HttpClient httpClient = Mock.Create<HttpClient>();
            ClientOptions clientApplicationOptions = Mock.Create<ClientOptions>();
            IOptions<DevOpsOptions> devOpsOptions = Mock.Create<IOptions<DevOpsOptions>>();
            AzureDevOpsSettings azureDevOpsSettings = new AzureDevOpsSettings();

            IHttpDevOpsServiceClient httpDevOpsServiceClient = new HttpDevOpsServiceClient(httpClient, clientApplicationOptions, devOpsOptions);

            //Act
            async Task actAsync() => await httpDevOpsServiceClient.DeleteUser(null, azureDevOpsSettings);

            //Assert
            await Assert.ThrowsAsync<ArgumentException>(actAsync);
        }
</code>```

But when i try to run the test with dotnet command

```<code>dotnet test .\UserManagement.Test.csproj
</code>```

Its throw this exception:

```<code>Abstract type Microsoft.Extensions.Options.IOptions'1[Models.DevOpsOptions] is not accessible for inheritance
</code>```

But when i change Model type to public, everything is fine.

Body:
I have a small problem with running the unit tests with dotnet CLI. I am using xUnit and JustMock.

I have a class called 'DevOpsOptions' which is a internal and located in UserManagement project.

Example:

    internal class DevOpsOptions
    {
        public string Username { get; set; }

        public string Password { get; set; }
    }

I also have another project for unit tests, called UserManagement.Tests. I added reference to the UserManagement project and set InternalVisibility

Example:

<ItemGroup>
        <InternalsVisibleTo Include="$(AssemblyName).Tests" />
</ItemGroup>

I wrote a test that runs successfully if run the standard way. Right click -> Run tests
Example:

        [Fact]
        public async void ThrowArgumentException_WhenUserEmailIsNull()
        {
            //Arrange
            HttpClient httpClient = Mock.Create<HttpClient>();
            ClientOptions clientApplicationOptions = Mock.Create<ClientOptions>();
            IOptions<DevOpsOptions> devOpsOptions = Mock.Create<IOptions<DevOpsOptions>>();
            AzureDevOpsSettings azureDevOpsSettings = new AzureDevOpsSettings();

            IHttpDevOpsServiceClient httpDevOpsServiceClient = new HttpDevOpsServiceClient(httpClient, clientApplicationOptions, devOpsOptions);

            //Act
            async Task actAsync() => await httpDevOpsServiceClient.DeleteUser(null, azureDevOpsSettings);

            //Assert
            await Assert.ThrowsAsync<ArgumentException>(actAsync);
        }

But when i try to run the test with dotnet command

dotnet test .\UserManagement.Test.csproj

Its throw this exception:

Abstract type Microsoft.Extensions.Options.IOptions'1[Models.DevOpsOptions] is not accessible for inheritance

But when i change Model type to public, everything is fine.


问:
How I can search a user using their name and, then, get the specific user data from Cloud Firestore using a Search Bar in Flutter?
I have this app where I need to search a user using their name in a Search Bar and, if I clic in one of these users, I need to retrieve the information of that specific user. But, there's another problem, because I need to view the user information without an account. The users that I search already have an account, but I need to watch their information without a current account. How I can do it?

I tried putting a Navigation to the screen where I need to view the information, but that dosen't work (I know why didn't work, but I don't know how to fix it).
What I need?
When I search an users in my Search Bar, I need to clic on it and then send me to another screen.
(This is my app bar) here
After I did the clic in the user, I need to view the information like this:
This is my profile page here
(This is an example what I want, because this is the screen that the user can view after login, but I need to watch this information without a login after a clic in the Search Bar).

Sorry for my bad english, I tried to write this the better that I can.

This is my code:

```<code>import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/material.dart';
//import 'package:phonectedflutter2/Crearcuenta.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:phonectedflutter2/Comprobacionedad.dart';
import 'package:phonectedflutter2/Crearcuenta.dart';
import 'package:phonectedflutter2/Ingresarcliente.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:phonectedflutter2/PinturasPan.dart';
import 'package:phonectedflutter2/Verlodatos.dart';
import 'Infoestablecimientocliente.dart';
import 'package:phonectedflutter2/Verdatos.dart';
import 'package:phonectedflutter2/HospitalesPan.dart';
import 'package:dropdown_search/dropdown_search.dart';

import 'Iniciarsesion.dart';

class NoRestriccion extends StatefulWidget{
  @override
  NoresApp createState () => NoresApp();
}

class NoresApp extends State<NoRestriccion>{
  List searchResult = [];

  void searchFromFirebase(String query) async{
    final result = await FirebaseFirestore.instance.collection('users').where('Nombre', isGreaterThanOrEqualTo: query).get();
    setState(() {
      searchResult = result.docs.map((e) => e.data()).toList();
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'PhoNected',
      home: Scaffold(
        extendBodyBehindAppBar: true,
        backgroundColor: Color(0xFFffff8d),
        appBar: AppBar(
          toolbarHeight: 110,
          leading: IconButton(
            icon: Icon(Icons.arrow_back),
            color: Colors.black,
            iconSize: 35,
            onPressed: () => Navigator.push(context,MaterialPageRoute(builder: (_)=> Comprobacionedad()) ),
          ),
          title: Column(
            children: [
              Text('PhoNected',
                  style: TextStyle(color: Colors.black, fontSize: 50)),
            ],
          ),
          centerTitle: true,
          flexibleSpace: Container(
            decoration: BoxDecoration(
              borderRadius: BorderRadius.only(bottomLeft: Radius.circular(30), bottomRight: Radius.circular(30)),
              gradient: LinearGradient(
                  colors: [Color(0xFFffff00),Colors.orangeAccent],
                  begin: Alignment.bottomCenter,
                  end: Alignment.topCenter
              ),
            ),
          ),
          backgroundColor: Colors.transparent,
          elevation: 0,
        ),
        body: SingleChildScrollView(
          child: Column(
            children: [
              Padding(padding: EdgeInsets.only(left: 20,top: 170,right: 20),
                child: TextField(
                  decoration: InputDecoration(
                    icon: Icon(Icons.search),

                    border: OutlineInputBorder(
                        borderRadius: BorderRadius.circular(20)
                    ),
                    hintText: 'Busque un establecimiento aquí...',
                  ),
                  onChanged: (query) {
                    searchFromFirebase(query);
                  },
                ),
              ),
              SizedBox(
                height: 200,
                width: 600,
                  child: ListView.builder(
                    padding: EdgeInsets.all(0),
                    itemCount: searchResult.length,
                    itemBuilder: (context, index){
                      return ListTile(
                        title: Text(searchResult[index]['Nombre']),
                        subtitle: Text(searchResult[index]['Tipo']),
                        focusColor: Colors.yellow,
                        onTap: (){
                          Navigator.push(context,MaterialPageRoute(builder: (_)=> Verlodatos()) );
                        },
                      );
                    },
                  ),
              ),
              Padding(padding: EdgeInsets.only(left: 20,top: 30,right: 20),
                child: Center(
                  child: Container(
                    decoration: BoxDecoration(
                      border: Border.all(color: Colors.amberAccent, width: 4),
                      borderRadius: BorderRadius.circular(15),
                    ),
                    width: 1000,
                    height: 150,
                    child: InkWell(
                      onTap: () {
                        Navigator.push(context,MaterialPageRoute(builder: (_)=> HospitalesPan()) );
                      },
                      child: Ink.image(
                        image: AssetImage('image/Hospitales.png'),
                        fit: BoxFit.cover,
                      ),
                    ),
                  ),
                ),
              ),
              Padding(padding: EdgeInsets.only(left: 20,top: 30,right: 20),
                child: Center(
                  child: Container(
                    decoration: BoxDecoration(
                      border: Border.all(color: Colors.amberAccent, width: 4),
                      borderRadius: BorderRadius.circular(15),
                    ),
                    width: 1000,
                    height: 150,
                    child: InkWell(
                      onTap: () {
                        Navigator.push(context,MaterialPageRoute(builder: (_)=> PinturasPan()) );
                      },
                      child: Ink.image(
                        image: AssetImage('image/Pinturas4.png'),
                        fit: BoxFit.cover,
                      ),
                    ),
                  ),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
</code>```

Body:
I have this app where I need to search a user using their name in a Search Bar and, if I clic in one of these users, I need to retrieve the information of that specific user. But, there's another problem, because I need to view the user information without an account. The users that I search already have an account, but I need to watch their information without a current account. How I can do it?

I tried putting a Navigation to the screen where I need to view the information, but that dosen't work (I know why didn't work, but I don't know how to fix it).
What I need?
When I search an users in my Search Bar, I need to clic on it and then send me to another screen.
(This is my app bar) here
After I did the clic in the user, I need to view the information like this:
This is my profile page here
(This is an example what I want, because this is the screen that the user can view after login, but I need to watch this information without a login after a clic in the Search Bar).

Sorry for my bad english, I tried to write this the better that I can.

This is my code:

import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/material.dart';
//import 'package:phonectedflutter2/Crearcuenta.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:phonectedflutter2/Comprobacionedad.dart';
import 'package:phonectedflutter2/Crearcuenta.dart';
import 'package:phonectedflutter2/Ingresarcliente.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:phonectedflutter2/PinturasPan.dart';
import 'package:phonectedflutter2/Verlodatos.dart';
import 'Infoestablecimientocliente.dart';
import 'package:phonectedflutter2/Verdatos.dart';
import 'package:phonectedflutter2/HospitalesPan.dart';
import 'package:dropdown_search/dropdown_search.dart';

import 'Iniciarsesion.dart';

class NoRestriccion extends StatefulWidget{
  @override
  NoresApp createState () => NoresApp();
}

class NoresApp extends State<NoRestriccion>{
  List searchResult = [];

  void searchFromFirebase(String query) async{
    final result = await FirebaseFirestore.instance.collection('users').where('Nombre', isGreaterThanOrEqualTo: query).get();
    setState(() {
      searchResult = result.docs.map((e) => e.data()).toList();
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'PhoNected',
      home: Scaffold(
        extendBodyBehindAppBar: true,
        backgroundColor: Color(0xFFffff8d),
        appBar: AppBar(
          toolbarHeight: 110,
          leading: IconButton(
            icon: Icon(Icons.arrow_back),
            color: Colors.black,
            iconSize: 35,
            onPressed: () => Navigator.push(context,MaterialPageRoute(builder: (_)=> Comprobacionedad()) ),
          ),
          title: Column(
            children: [
              Text('PhoNected',
                  style: TextStyle(color: Colors.black, fontSize: 50)),
            ],
          ),
          centerTitle: true,
          flexibleSpace: Container(
            decoration: BoxDecoration(
              borderRadius: BorderRadius.only(bottomLeft: Radius.circular(30), bottomRight: Radius.circular(30)),
              gradient: LinearGradient(
                  colors: [Color(0xFFffff00),Colors.orangeAccent],
                  begin: Alignment.bottomCenter,
                  end: Alignment.topCenter
              ),
            ),
          ),
          backgroundColor: Colors.transparent,
          elevation: 0,
        ),
        body: SingleChildScrollView(
          child: Column(
            children: [
              Padding(padding: EdgeInsets.only(left: 20,top: 170,right: 20),
                child: TextField(
                  decoration: InputDecoration(
                    icon: Icon(Icons.search),

                    border: OutlineInputBorder(
                        borderRadius: BorderRadius.circular(20)
                    ),
                    hintText: 'Busque un establecimiento aquí...',
                  ),
                  onChanged: (query) {
                    searchFromFirebase(query);
                  },
                ),
              ),
              SizedBox(
                height: 200,
                width: 600,
                  child: ListView.builder(
                    padding: EdgeInsets.all(0),
                    itemCount: searchResult.length,
                    itemBuilder: (context, index){
                      return ListTile(
                        title: Text(searchResult[index]['Nombre']),
                        subtitle: Text(searchResult[index]['Tipo']),
                        focusColor: Colors.yellow,
                        onTap: (){
                          Navigator.push(context,MaterialPageRoute(builder: (_)=> Verlodatos()) );
                        },
                      );
                    },
                  ),
              ),
              Padding(padding: EdgeInsets.only(left: 20,top: 30,right: 20),
                child: Center(
                  child: Container(
                    decoration: BoxDecoration(
                      border: Border.all(color: Colors.amberAccent, width: 4),
                      borderRadius: BorderRadius.circular(15),
                    ),
                    width: 1000,
                    height: 150,
                    child: InkWell(
                      onTap: () {
                        Navigator.push(context,MaterialPageRoute(builder: (_)=> HospitalesPan()) );
                      },
                      child: Ink.image(
                        image: AssetImage('image/Hospitales.png'),
                        fit: BoxFit.cover,
                      ),
                    ),
                  ),
                ),
              ),
              Padding(padding: EdgeInsets.only(left: 20,top: 30,right: 20),
                child: Center(
                  child: Container(
                    decoration: BoxDecoration(
                      border: Border.all(color: Colors.amberAccent, width: 4),
                      borderRadius: BorderRadius.circular(15),
                    ),
                    width: 1000,
                    height: 150,
                    child: InkWell(
                      onTap: () {
                        Navigator.push(context,MaterialPageRoute(builder: (_)=> PinturasPan()) );
                      },
                      child: Ink.image(
                        image: AssetImage('image/Pinturas4.png'),
                        fit: BoxFit.cover,
                      ),
                    ),
                  ),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}


问:
How add standard attributes with space contain
standard attributes

how to add

given name
family name

```<code>  schema {
    attribute_data_type      = "Sring"
    developer_only_attribute = false
    mutable                  = false

    name                     = "famil name"
    required                 = false

      string_attribute_constraints {
      min_length = 7
      max_length = 150
    }
</code>```

Body:
standard attributes

how to add

given name
family name

  schema {
    attribute_data_type      = "Sring"
    developer_only_attribute = false
    mutable                  = false

    name                     = "famil name"
    required                 = false

      string_attribute_constraints {
      min_length = 7
      max_length = 150
    }


问:
Difference between "Download to a stream" and "Download from a stream" in Azure blob storage
I am trying out downloading data from Azure blob storage, as per the documentation
 it shows two options:

Download to a stream

```<code>    FileStream fileStream = File.OpenWrite(localFilePath);
    await blobClient.DownloadToAsync(fileStream);
    fileStream.Close();
</code>```

Download from a stream

```<code> using (var stream = await blobClient.OpenReadAsync())
    {
        FileStream fileStream = File.OpenWrite(localFilePath);
        await stream.CopyToAsync(fileStream);
    }
</code>```

Both of them seem to be creating an output file with the data received from blob storage.

So, I am confused
what is the difference between the two and why would I need one over another?

Body:
I am trying out downloading data from Azure blob storage, as per the documentation
 it shows two options:

Download to a stream

    FileStream fileStream = File.OpenWrite(localFilePath);
    await blobClient.DownloadToAsync(fileStream);
    fileStream.Close();

Download from a stream

 using (var stream = await blobClient.OpenReadAsync())
    {
        FileStream fileStream = File.OpenWrite(localFilePath);
        await stream.CopyToAsync(fileStream);
    }

Both of them seem to be creating an output file with the data received from blob storage.

So, I am confused
what is the difference between the two and why would I need one over another?


问:
NX build doesn't copy mikro-orm config to dist folder
I have NX workspace, which contains 2 angular and 1 nestjs projects. In nestjs project in future called as nestjs-server, I've implemented mikro-orm config (/apps/nestjs-server/src/app/database/mikro-orm.config.ts):

```<code>import { Options } from '@mikro-orm/core';
import { TsMorphMetadataProvider } from '@mikro-orm/reflection';

const config: Options = {
  type: 'sqlite',
  dbName: 'test-db.sqlite3',
  entities: ['dist/**/*.entity.js'],
  entitiesTs: ['src/**/*.entity.ts'],
  metadataProvider: TsMorphMetadataProvider,
  migrations: {
    path: 'dist/migrations',
    pathTs: 'src/migrations',
  },
};
</code>```

export default config;

And in package.json, I've specified mikro-orm config paths:

```<code>"mikro-orm": {
  "nestjs-server": {
    "useTsNode": true,
    "configPaths": [
      "./apps/nestjs-server/src/app/database/mikro-orm.config.ts",
      "./dist/apps/nestjs-server/database/mikro-orm.config.js"
    ]
  }
}
</code>```

The problem is, when I start nestjs-server (nx serve nestjs-server), mikro-orm.config.js is not created in dist/apps/nestjs-server/database, dist/apps/nestjs-server/ folder contains only: main.js, main.js.map and assets folder with .gitkeep empty file only.

What might be causing this?

Body:
I have NX workspace, which contains 2 angular and 1 nestjs projects. In nestjs project in future called as nestjs-server, I've implemented mikro-orm config (/apps/nestjs-server/src/app/database/mikro-orm.config.ts):

import { Options } from '@mikro-orm/core';
import { TsMorphMetadataProvider } from '@mikro-orm/reflection';

const config: Options = {
  type: 'sqlite',
  dbName: 'test-db.sqlite3',
  entities: ['dist/**/*.entity.js'],
  entitiesTs: ['src/**/*.entity.ts'],
  metadataProvider: TsMorphMetadataProvider,
  migrations: {
    path: 'dist/migrations',
    pathTs: 'src/migrations',
  },
};

export default config;

And in package.json, I've specified mikro-orm config paths:

"mikro-orm": {
  "nestjs-server": {
    "useTsNode": true,
    "configPaths": [
      "./apps/nestjs-server/src/app/database/mikro-orm.config.ts",
      "./dist/apps/nestjs-server/database/mikro-orm.config.js"
    ]
  }
}

The problem is, when I start nestjs-server (nx serve nestjs-server), mikro-orm.config.js is not created in dist/apps/nestjs-server/database, dist/apps/nestjs-server/ folder contains only: main.js, main.js.map and assets folder with .gitkeep empty file only.

What might be causing this?