Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 22:54

    rainersigwald on vsix-depend-on-nuget

    VSIX dependency on NuGet.BuildT… Disambiguate branch name (compare)

  • Jan 31 22:45
    livarcocc review_requested #4121
  • Jan 31 22:45
    livarcocc review_requested #4121
  • Jan 31 22:45
    livarcocc opened #4121
  • Jan 31 22:42
    daryllabar commented #545
  • Jan 31 21:40
    JL2210 edited #4116
  • Jan 31 21:40
    JL2210 edited #4116
  • Jan 31 21:39
    JL2210 commented #4116
  • Jan 31 21:05
    livarcocc milestoned #4116
  • Jan 31 21:05
    livarcocc commented #4116
  • Jan 31 20:55
    rainersigwald milestoned #4120
  • Jan 31 20:55
    rainersigwald demilestoned #4120
  • Jan 31 20:53
    livarcocc synchronize #4115
  • Jan 31 20:53

    livarcocc on vs16.0

    Bump version to disambiguate wi… Merge pull request #4119 from r… (compare)

  • Jan 31 20:53
    livarcocc closed #4119
  • Jan 31 20:50

    livarcocc on livarcocc-patch-1

    (compare)

  • Jan 31 20:50

    livarcocc on vs16.0

    Adding a vs16.0 trigger Updating to a more general trig… Merge pull request #4118 from M… (compare)

  • Jan 31 20:50
    livarcocc synchronize #4115
  • Jan 31 20:50
    livarcocc closed #4118
  • Jan 31 20:46
    livarcocc milestoned #4120
Mikhail Filippov
@mfilippov
@eltonomicon Thank you for the advise!
Michael W Powell
@mwpowellhtx
I figured on a way to do my Clean-based targets entirely through the Build targets themselves. No need for me to invoke any tooling. Works great! :thumbsup:
fsnick
@fsnick
Is there a way to check that an item comes from a Shared Project? I see that Microsoft.NET.Sdk.DefaultItems.targets compares DefiningProjectExtension metadata with .projitems, but it seems that doesn't work for imported .targets. It gives me Microsoft.Common.CurrentVersion as source instead of the .projitems file. So I'm guessing None items are redefined somehow in there.
fsnick
@fsnick
I can of course check Link metadata, but that also includes manually linked items not in a Shared Project.
L!εsAμεr
@liesauer
image.png
hey guys, how can i get the corrent path that specify with dotnet publish -o=xxx
$(OutputPath) is incorrect
L!εsAμεr
@liesauer
solved, use $(PublishDir)
Joseph Musser
@jnm2
Aha, dotnet/cli#8405 seems to agree.
It would be really nice if the underlying MSBuild properties were documented at https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish.
L!εsAμεr
@liesauer
right
Michael W Powell
@mwpowellhtx
I started here https://gitter.im/dotnet/corefx but I am not positive this is actually at least an MSBuild issue, or one of its surrogates, i.e. NuGet. Can someone possibly point me in a direction to report this issue.
Michael W Powell
@mwpowellhtx
Hello, I have an issue with multi-targeting and triggering a bump-assembly-versions action. The bump seems to be triggered for each target platform in the multi-target list, possibly asynchronously, because I may see +X to the fields, or something like +(X-1), for instance; i.e. if the async operation happened to unwind a previous one to the last. In any event, all we want to bump is literally +1, or whatever the bump instruction was. i.e. <TargetFrameworks>netstandard1.0;netstandard2.0;net20</TargetFrameworks>. Is there a better event we can monitor in order to only bump once prior to the build(s) for each platform?
Michael W Powell
@mwpowellhtx
Michael W Powell
@mwpowellhtx
Anyone at all? microsoft/msbuild#4490
Michael W Powell
@mwpowellhtx
following up on my private assets project reference approach to my internal CG, so far running into a brick wall. the dependency assets need to have landed prior to CG taking place, however, any Clean Build or Rebuild attempt effectively wipes those assets at the moments when any CG would take place.
thus far it is looking like I should isolate the CG bits as a separate build configuration and deliver genuine PrivateAssets PackageReference(s) internally for our CG.
Michael W Powell
@mwpowellhtx
When you have a multitarget project, say netstandard1.0;netstandard1.3;..., and you want a UsingTask to evaluate properly, the bits evaluating target netstandard2.0 for use during a build target, i.e. <Target ...><MyTask ... /></Target>, along these lines.
However, I am finding that the tasks are not evaluating. They work fine when the target is netstandard2.0, but not when the multitarget happens.
I've checked that the target conditions are correct so that is not the issue. i.e. <Target Name="..." BeforeTargets="DispatchToInnerBuilds" Condition="'$(TargetFrameworks)' != ''" /> or <Target Name="..." BeforeTargets="BeforeBuild" Condition="'$(TargetFrameworks)' == ''">, respectively.
Michael W Powell
@mwpowellhtx
From what I can tell, the targets are not imported in the multi-target case.
Michael W Powell
@mwpowellhtx
There appear to be some generated multi-target targets that are generated which prohibit them from ever occurring. My workaround is to specify my targets manually and to omit build from among the <IncludeAssets>runtime; native; contentfiles; analyzers</IncludeAssets> for the time being. Although, I think possibly this is a bug in msbuild itself and should be addressed.
When I do include the build assets, I get warning MSB4011, the bump does happen as expected, but only because I included the targets myself. Something about this condition is prohibiting the bump from ever happening, <ImportGroup Condition=" '$(TargetFramework)' == 'netstandard1.0' AND '$(ExcludeRestorePackageImports)' != 'true' "><Import Project="$(NuGetPackageRoot)\bumpassemblyversions\1.3.1\build\BumpAssemblyVersions.targets" Condition="Exists('$(NuGetPackageRoot)\bumpassemblyversions\1.3.1\build\BumpAssemblyVersions.targets')" /></ImportGroup>.
My guess something about ExcludeRestorePackageImports must be blocking, because there are similar cases for the other targets, i.e. <ImportGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' AND '$(ExcludeRestorePackageImports)' != 'true' " />.
Michael W Powell
@mwpowellhtx
anyone know anything about this? or should I submit another issue via Github channels?
mythgarr
@mythgarr
Is it possible to override the behavior of a Task? For example, if I want <CopyRefAssembly> to just run a <Copy> task?
The CopyFilesToOutputDirectory target uses CopyRefAssembly which doesn't support Retries or RetryDelayMilliseconds. Duplicating the target with that single modification might be more fragile since we'd miss any changes to that target as part of VS updates so I'm looking for a more limited solution
Dylan Borg
@borgdylan
@radical Has the msbuild for mono build process changed? make all-mono is broken on xplat-master with teh needed arcade version not being available.
Dylan Borg
@borgdylan
@directhex the makefiles in the repo call the exact build command line as in that python file. I am having issues when running that.
I did a clean before that just to be sure. I also have to copy the hostfxr into the msbuild resolver folders since only the macOS one is bundled.
Dylan Borg
@borgdylan
If using a recent mono built from git, running git clean -xdf and make clean, then make all-mono i get errors regarding a missing logger:
MSBUILD : error MSB1021: Cannot create an instance of the logger. Could not load the file '/home/dylan/Desktop/git/mono-git/msbuild/.packages/microsoft.dotnet.arcade.sdk/1.0.0-dev.18424.13/tools/net472/Microsoft.DotNet.Arcade.Sdk.dll'
ANd that is only if I force the sdk in global.json to be one that is actually available to get via NuGet. Version 1.0.0-beta.19375.2 of arcade seems to be unavaialble.
Michael W Powell
@mwpowellhtx
Hello, I've got some ItemGroup specifications, ITaskItem specs, that I want to filter. I only want the most recent ones by the Include name to be included. Is it possible to filter based on that from a .targets perspective? Or would it just be simpler just to have received them into my custom target as an ITaskItem[], do whatever transformations to internal descriptors, and just do the filtering there? That is to say, I know I can do the latter, but I wondered if the former was possible and I could do it in the target.
Michael W Powell
@mwpowellhtx
I could do something like <MySpec Include="Test" PropertyA="true" PropertyB="123" ... />, then possibly something like <MySpec Update="Test" PropertyC="false" />. Question is, if we update the spec, does that undo the A and B properties and leave only the C property? Or does it preserve the A and B properties? To be clear, we want to see only the C property when we update in this manner. We could do that, from a targets perspective, possibly. If necessary, we can do the filtering internally to the custom target implementation, however.
Michael W Powell
@mwpowellhtx
After some experimentation, I think I've got my answer. The properties appear to be merging when we Update="...". However, we want to replace. This pattern would be acceptable, I think, <MySpec Include="..." />, ... <MySpec Remove="..." /> ... <MySpec Include="..." />.
Michael W Powell
@mwpowellhtx
On a slightly different tact, is it possible to flatten, i.e. fatten, a resulting nuget package via msbuild and/or csproj? That is, instead of the package being thin, carrying with it other package references, we have a requirement to absorb the dependencies, however many deep, as a fat package. Ultimately this will inform an <Exec /> dotnet CLI tool, which, apparently, does not adequately identify its package references during build time. So the next best thing we want to try is delivering all the required bits in one single package.
Michael W Powell
@mwpowellhtx
Following up on my question yesterday, how possible would it be to consume the .deps.json, either as a dependency resolution strategy from my CGR, or as a separate set of tooling, parse the file, ensure that the appropriate package binaries land in the bin folder prior to code generation tasking taking place.
Michael W Powell
@mwpowellhtx
Not so simple an issue, it would seem. There appears to be a netcore3 migration path there. TBD how much rolling our own would be involved if we wanted to accommodate netstandard2 or netcore2.
fsnick
@fsnick
Is there an msbuild property that allows me to skip all tests for that project when dotnet test runs?
I have to conditionally skip some tests based on the environment in which they run (CI/non-CI)
Michael W Powell
@mwpowellhtx
Hello, is there a way to capture and/or otherwise evaluate the Error Level following the Exec task?
Ankit Jain
@radical
error level? do you mean the ExitCode from the command?
Michael W Powell
@mwpowellhtx
That was it, thank you; I'm thinking of it in terms of batch files, error level, etc.
Michael W Powell
@mwpowellhtx
Hello, when you are doing code generation during a build, you have the Compile item, what is the purpose of the FileWrites item? This captures the response paths from the compiler?
Rainer Sigwald
@rainersigwald
@mwpowellhtx FileWrites is fed into the Clean family of targets so the generated files get cleaned up
Michael W Powell
@mwpowellhtx
Can a NuGet.Config be provided at the project level, not just the solution level?
I've got a couple of internally delivered packages, and that would be great.