Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shebang Generated.tt failing to reference Reaqtive assemblies #119

Open
ScottKane opened this issue Oct 14, 2021 · 2 comments
Open

Shebang Generated.tt failing to reference Reaqtive assemblies #119

ScottKane opened this issue Oct 14, 2021 · 2 comments

Comments

@ScottKane
Copy link

I have created the following repo (https://github.com/ScottKane/Reaqtor.Shebang) pulling the Shebang sample out of the reactor repo, I have replaced project references with the equivalent nuget packages. I've also just made everythin net50/netstandard2.1.

The text templating generators can't seem to load the Reaqtive.Interfaces, Reaqtive.Core, and Reaqtive.Linq assemblies.

https://github.com/ScottKane/Reaqtor.Shebang/blob/master/Reaqtor.Shebang.Client/ClientContext.Generated.tt

<#@ assembly name="$(ProjectDir)\$(OutputPath)\Reaqtive.Interfaces.dll" #>
<#@ assembly name="$(ProjectDir)\$(OutputPath)\Reaqtive.Core.dll" #>
<#@ assembly name="$(ProjectDir)\$(OutputPath)\Reaqtive.Linq.dll" #>

https://github.com/ScottKane/Reaqtor.Shebang/blob/master/Reaqtor.Shebang.Client/Reaqtor.Shebang.Client.csproj

<ItemGroup>
    <PackageReference Include="Reaqtive.Core" Version="1.0.0-beta.1" />
    <PackageReference Include="Reaqtive.Interfaces" Version="1.0.0-beta.1" />
    <PackageReference Include="Reaqtive.Linq" Version="1.0.0-beta.1" />
    <PackageReference Include="Reaqtor.Client" Version="1.0.0-beta.1" />
</ItemGroup>

What should I be doing here to pull these dependencies through?

Thanks

@ScottKane ScottKane changed the title Generated.tt failing to reference Reaqtive assemblies Shebang Generated.tt failing to reference Reaqtive assemblies Oct 14, 2021
@ScottKane
Copy link
Author

It also appears that the Reaqtive.Linq package on nuget doesn't have up to date types.

Subscribable is missing:

  • Contains
  • DefaultIfEmpty
  • Distinct
  • ElementAt
  • ElementAtOrDefault
  • IgnoreElements
  • LastAsync
  • LastOrDefaultAsync
  • SingleAsync
  • SingleOrDefaultAsync

Can we get a new package version?

@ScottKane
Copy link
Author

ScottKane commented Oct 15, 2021

I now have the solution building without having to build local code, I was able to get the actual latest version of the build not yet on nuget by downloading the SignedPackages from https://dev.azure.com/dotnet/Reaqtor/_build/results?buildId=58263&view=artifacts&pathAsName=false&type=publishedArtifacts. Uploading them into my own nuget package feed and then targeting the version 1.0.0-beta.22 which comes from my feed. The net472 dll's required for the T4 templates are always copied to the output/publish directories.

<#@ assembly name="$(ProjectDir)\bin\$(Configuration)\net472\Reaqtive.Interfaces.dll" #>
<#@ assembly name="$(ProjectDir)\bin\$(Configuration)\net472\Reaqtive.Core.dll" #>
<#@ assembly name="$(ProjectDir)\bin\$(Configuration)\net472\Reaqtive.Linq.dll" #>
<ItemGroup>
    <PackageReference Include="Reaqtive.Core" Version="1.0.0-beta.22" GeneratePathProperty="true" />
    <PackageReference Include="Reaqtive.Interfaces" Version="1.0.0-beta.22" GeneratePathProperty="true" />
    <PackageReference Include="Reaqtive.Linq" Version="1.0.0-beta.22" GeneratePathProperty="true" />
    <PackageReference Include="Reaqtor.Client" Version="1.0.0-beta.22" />
</ItemGroup>

<ItemGroup>
    <Content Include="$(PkgReaqtive_Linq)\lib\net472\Reaqtive.Linq.dll">
        <Link>$(OutputDir)\..\net472\Reaqtive.Linq.dll</Link>
        <CopyToOutputDirectory>Always</CopyToOutputDirectory>
        <CopyToPublishDirectory>Always</CopyToPublishDirectory>
    </Content>
    <Content Include="$(PkgReaqtive_Core)\lib\net472\Reaqtive.Core.dll">
        <Link>$(OutputDir)\..\net472\Reaqtive.Core.dll</Link>
        <CopyToOutputDirectory>Always</CopyToOutputDirectory>
        <CopyToPublishDirectory>Always</CopyToPublishDirectory>
    </Content>
    <Content Include="$(PkgReaqtive_Interfaces)\lib\net472\Reaqtive.Interfaces.dll">
        <Link>$(OutputDir)\..\net472\Reaqtive.Interfaces.dll</Link>
        <CopyToOutputDirectory>Always</CopyToOutputDirectory>
        <CopyToPublishDirectory>Always</CopyToPublishDirectory>
    </Content>
</ItemGroup>

The following in the Reaqtor.Shebang.App.csproj stops the output files being output for this project

<PropertyGroup>
    <_GetChildProjectCopyToOutputDirectoryItems>false</_GetChildProjectCopyToOutputDirectoryItems>
    <_GetChildProjectCopyToPublishDirectoryItems>false</_GetChildProjectCopyToPublishDirectoryItems>
</PropertyGroup>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant