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 2019 22:54

    rainersigwald on vsix-depend-on-nuget

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

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

    livarcocc on vs16.0

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

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

    livarcocc on livarcocc-patch-1

    (compare)

  • Jan 31 2019 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 2019 20:50
    livarcocc synchronize #4115
  • Jan 31 2019 20:50
    livarcocc closed #4118
  • Jan 31 2019 20:46
    livarcocc milestoned #4120
Joseph Musser
@jnm2
@mwpowellhtx You need IsPackable if you are packing the sln but not if you pack individual csprojs directly.
It's not super clear to me what you're asking. What is slim xunit references? What is short circuiting?
Are you doing dotnet pack or msbuild /t:Pack /restore?
Michael W Powell
@mwpowellhtx
now another mystery, the conventional (default) packaging includes both the license file as well as licenseUrl, however, when we try the same via the nuspec we are seeing a hard error, The licenseUrl and license elements cannot be used together. How is it the default packaging can include this where as with nuspec usage we cannot? is there some sort of errors as warnings flag involved?
Ah, okay, when we expand the package file, this is injected automatically, <licenseUrl>https://aka.ms/deprecateLicenseUrl</licenseUrl>
Michael W Powell
@mwpowellhtx
our goal is for Roslyn CG to happen, but we are running into MSBuild API issues at the moment, microsoft/msbuild#4848
Kirk Fertitta
@kfertitta
Do MSBuild project SDKs support roll-forward or some type of "wildcard" scheme in the global.json?
I've been tracking issues on GitHub related to .NET Core itself, but not clear if/when this works for our custom project SDKs.
Currently, we just do this in our CPS-based custom project system's global.json.
{
  "msbuild-sdks": {
    "MindWorks.Nimbus.BuildTools": "5.0.0"
  }
}
Kirk Fertitta
@kfertitta
@rainersigwald Any thoughts on the above question regarding "wildcard" or roll-forward capabilities wrt global.json in our SDK-style custom project system?
Dan Siegel
@dansiegel
If I have a binlog of a build, and the build fails because a Variable isn't set that controls whether or not a target can execute... shouldn't I be able to see the target when looking at the binlog?
and any targets that it depends on?
Joseph Musser
@jnm2
@dansiegel If you use Condition on the target, it shows up in the binlog IIRC.
I've seen it greyed out in the structured log viewer
Dan Siegel
@dansiegel
If I search I can't find any of my custom targets including the targets which should all be executing before this one
Joseph Musser
@jnm2
If you choose the 'preprocess' option, can you confirm whether they are ending up getting defined?
Dan Siegel
@dansiegel
I'm not sure what you mean by the 'preprocess' option
Joseph Musser
@jnm2
If you right-click the csproj node, it shows up in the context menu.
It shows the entire imported and evaluated starting point.
I use Ctrl+F on it a lot
Dan Siegel
@dansiegel
I'm not seeing a 'preprocess' option in any context menus in Visual Studio, the Build Logging extension, or in the BinLog Viewer
Joseph Musser
@jnm2
Ah. I use http://msbuildlog.com/ which is standalone and which opens from the Project System Tools VS extensions with 'Open in external viewer.'
That's where I've seen skipped targets greyed out. Maybe the binlog viewer in VS is different?
Dan Siegel
@dansiegel
well that's what I was referring to
the targets aren't grayed out.. they just aren't there
even though clearly the build is failing because of one of the targets
Joseph Musser
@jnm2
This is the preprocess option:
image.png
Johan Larsson
@JohanLarsson
/p:ReportAnalyzer=true is nice
Dan Siegel
@dansiegel
@jnm2 I seem to be missing that option
Joseph Musser
@jnm2
I'm on the latest version. The greyed-out icons show skipped targets:
image.png
Dylan Borg
@borgdylan
@radical I'm having issues with the latest code in xplat-master, in particularly package restore does not work anymore. mono/msbuild@e531c61
Kirk Fertitta
@kfertitta
I'd like to use the SkipNonexistentTargets feature available to the MSBuild task but from within a custom task. Would this be the way to do that?
                var targetOutputs = new Dictionary<string, ITaskItem[]>();

                var result = this.BuildEngine.BuildProjectFile(
                    item.ItemSpec,
                    targetNames: new[] { "MyTarget" },
                    globalProperties: new Dictionary<string, string> { { "SkipNonexistentTargets", "true" } }, 
                    targetOutputs);
Kirk Fertitta
@kfertitta
Anybody out there?
L!εsAμεr
@liesauer
hey guys, how can i get the absolute publish dir in csproj?

because of the changes between 2.x and 3.x, i can not find a compatible formula to calcute the right abs publish dir.

i have tried $(PublishDir) and $([System.IO.Path]::GetFullPath('$(PublishDir)')), but it always be wrong in some situations(build with 2.x sdk or build with 3.x sdk, with or without -o option, -o option is absolute dir or relative dir)

but i have realized that the dir output by sdk always be right, so how can i get this dir in my .csproj file?

image

Jo Shields
@directhex
what's a less gross way to do https://github.com/directhex/llvm-project/blob/arcade/nuget/Microsoft.NETCore.Runtime.Mono.LLVM.Sdk/runtime.Linux.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk.props i.e. with recursion, so i don't need to specify the full TargetPath manually?
jgefen
@jgefen
Hi, I am trying to use the Microsoft.Build API to load a project that is using a custom Nuget SDK.
Unfortunaly I can seem to get it work, I keep get The SDK specified could not be found error. I have followed a tutorial I have found that worked for the standrd .net SDK https://daveaglick.com/posts/running-a-design-time-build-with-msbuild-apis
Can anyone help is there a setting I am missing?
Hugh Gleaves
@Korporal
I have a question. Given a folder tree, containing numerous arbitrary folders and within them VS solutions/projects , then given any filename in the folder tree can we determine a list of all projects that depend on that file? for example some C# source file.
pkruk2
@pkruk2
@jgefen are you using MSBuildLocator ?
I'm also trying to open a .net core project using msbuild api, but I'm getting error diagnostics. I created an issue on github: microsoft/msbuild#5002
jgefen
@jgefen
@pkruk2 No I havent used the MSBuildLocator can it work also with custom project types? I have a custom type that uses custom nugget SDK
Jerome Haltom
@wasabii
Hiya. I'm trying to find some instructions on how I'm supposed to call GetCopyToOutputDirectoryItems, or the other more specific output group targets, and collect the output. I'm having some inconsistent trouble here.... like, one of my projects is missed. And then the second time I build, a bunch of outputs are missed. I'm clearly doing something wrong. But I figure I should be able to find an example of collecting project output since it's probably a common thing.
pkruk2
@pkruk2
@jgefen I'm not sure. What MSBuildLocator does is configuring what msbuild assemblies are being used. Then they are used for opening for example .csproj. I guess if command line msbuild can compile your custom project, than msbuild API should be able to open it too, if you use correct msbuild assemblies
Tebjan Halm
@tebjan
does anyone know how to pass p:AllowedReferenceRelatedFileExtensions to a build via the API? i'm trying to get rid of the .xml and .pdb files from other projects/nugets on release build
i tried propertyGroup.AddProperty("DebugSymbols", "false"); propertyGroup.AddProperty("DebugType", "None"); propertyGroup.AddProperty("AllowedReferenceRelatedFileExtensions", "none");
and globalProperties["DebugSymbols"] = "false"; globalProperties["DebugType"] = "None"; globalProperties["AllowedReferenceRelatedFileExtensions"] = "none";
but neither seem to work...
or is there any other method to prevent .xml and .pdb files on the build output? i'm trying to reduce the build output file size
the project is the new SDK style format
Jerome Haltom
@wasabii
Does anybody have any tutorials about how to use msbuild to collect output item groups from project and package references transitively? Seems very badly documented, and I'm struggling getting all the files.