Byron
Byron
CC#
Created by Elio on 10/8/2024 in #help
Project Installer
This is still a bunch of random issues but it's workflows are so much better then hand editing xml files
27 replies
CC#
Created by Elio on 10/8/2024 in #help
Project Installer
WIX is a PITA but it's pretty much the best option. If you go down that route I suggest you use the project WixSharp (https://github.com/oleg-shilo/wixsharp). This in a neat project that allows you to write the msi configuration in C#. It then compiles into an application, that post build runs itself to generate the .msi. For example writing custom actions in vanilla is a horrible experience but with this project you just write the static methods and it abstracts them into the action assemblies. I ship projects that go to thousands of users this way, so I know it's stable.
27 replies
CC#
Created by Byron on 2/19/2024 in #help
Nuget Package: Project Reference Mutli Runtime Targeting
Anyway thanks for the pointers 🙂
12 replies
CC#
Created by Byron on 2/19/2024 in #help
Nuget Package: Project Reference Mutli Runtime Targeting
No description
12 replies
CC#
Created by Byron on 2/19/2024 in #help
Nuget Package: Project Reference Mutli Runtime Targeting
They bundle 4 versions inside their package haha. I can skip the self contained, that is a good point.
12 replies
CC#
Created by Byron on 2/19/2024 in #help
Nuget Package: Project Reference Mutli Runtime Targeting
I have written msbuild tasks before but we use the same CLI tools locally as well. So this gives us the best of both worlds. A simlar example is GitVersion.Tool which is pretty popular.
12 replies
CC#
Created by Byron on 2/6/2024 in #help
Source Generator AdditionalFiles Batching missing metadata
I will try out it, thank you 🙂
6 replies
CC#
Created by Byron on 2/6/2024 in #help
Source Generator AdditionalFiles Batching missing metadata
<AdditionalFiles Include="@(GeneratedApiClientContracts->'%(Identity)@client')"/>
<AdditionalFiles Include="@(GeneratedApiServerContracts->'%(Identity)@server')"/>
<AdditionalFiles Include="@(GeneratedApiClientContracts->'%(Identity)@client')"/>
<AdditionalFiles Include="@(GeneratedApiServerContracts->'%(Identity)@server')"/>
my ugly workaround
6 replies
CC#
Created by Byron on 2/6/2024 in #help
Source Generator AdditionalFiles Batching missing metadata
My backup option which is really ugly is to just give it a unique identity to make it unique, but that is very ugly. I was just trying to figure out if this is expected. If I was writing a custom ITask I would have access to all elements.
6 replies
CC#
Created by Byron on 2/6/2024 in #help
Source Generator AdditionalFiles Batching missing metadata
I would expect either all three to be returned or the second two items would have their metadata merged. In this case it just completely drops the second one since it's got the same identity.
6 replies
CC#
Created by Byron on 7/31/2023 in #help
✅ dotnet Restore and Targets in NuGet packages not found until second build
Thanks for chiming in, I figured I was a bit out of luck with what I was trying to do
9 replies
CC#
Created by Byron on 7/31/2023 in #help
✅ dotnet Restore and Targets in NuGet packages not found until second build
I have attempted to do the build in two steps
<MSBuild Projects="$(MSBuildThisFileDirectory)Build.targets" Targets="Restore"/>
<MSBuild Projects="$(MSBuildThisFileDirectory)Build.targets" Targets="GenerateSharedGitAssemblyInfo"/>
<MSBuild Projects="$(MSBuildThisFileDirectory)Build.targets" Targets="Restore"/>
<MSBuild Projects="$(MSBuildThisFileDirectory)Build.targets" Targets="GenerateSharedGitAssemblyInfo"/>
This however still fails. It should be noted I must use DependsOnTargets because GitVersion task exports properties which I need access to later in the script. Using the MSBbuild Task there are not avaiable
9 replies
CC#
Created by Byron on 6/14/2023 in #help
✅ Restore a PackageReference and use contained MSBBuild scripts inside of .targets file
oh that is really intresting! I have never played around with the NoTargets. I will take a gander at that. Thank you
9 replies