msbuild

Is it possible to remove the full-paths from .NET assemblies created with dotnet build?

穿精又带淫゛_ 提交于 2021-02-20 19:10:32
问题 The bounty expires in 2 days . Answers to this question are eligible for a +50 reputation bounty. sdgfsdh wants to draw more attention to this question. I build my project with dotnet build , targeting netcoreapp3.1 . The problem is that the assemblies contain the full path to the source-files: /home/runner/my-app/App.fs This means that the hash of the assemblies depends on the directory where the code was built. I want it to only depend on the hash of the source-files and the .NET SDK itself

Using CCNetLabel to set AssemblyVersion and PublishVersion with CruiseControl.NET

≡放荡痞女 提交于 2021-02-19 08:24:06
问题 I am trying to deploy a Click Once application (build and publish) using CruiseControl.NET. I cannot find out where I can use the CCNetLabel to set my AssemblyVersion and/or PublishVersion. I would accept other solutions that would allow a unique version number per CruiseControl.NET deployment (Live and Development deployments). 回答1: You need to write a script for setting your AssemblyVersion. I would recommend using NAnt or MSBuild for that purpose, but PowerShell or a simple bat file will

XmlUpdate task not updating my XML file

萝らか妹 提交于 2021-02-19 03:20:51
问题 I have the following task in an MSBuild script: <XmlUpdate Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" XmlFileName="$(PackageDir)\temp\OddEnds.Testing\OddEnds.Testing.nuspec" XPath="/package/metadata/version" Value="%(OddEndsTestingAsmInfo.Version)" /> which is supposed to update an empty version node in a NuGet specification file with the assembly version. My .nuspec file looks like this: <?xml version="1.0" encoding="utf-8"?> <package xmlns:xsd="http://www.w3.org

XmlUpdate task not updating my XML file

允我心安 提交于 2021-02-19 03:19:59
问题 I have the following task in an MSBuild script: <XmlUpdate Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" XmlFileName="$(PackageDir)\temp\OddEnds.Testing\OddEnds.Testing.nuspec" XPath="/package/metadata/version" Value="%(OddEndsTestingAsmInfo.Version)" /> which is supposed to update an empty version node in a NuGet specification file with the assembly version. My .nuspec file looks like this: <?xml version="1.0" encoding="utf-8"?> <package xmlns:xsd="http://www.w3.org

XmlUpdate task not updating my XML file

两盒软妹~` 提交于 2021-02-19 03:19:56
问题 I have the following task in an MSBuild script: <XmlUpdate Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" XmlFileName="$(PackageDir)\temp\OddEnds.Testing\OddEnds.Testing.nuspec" XPath="/package/metadata/version" Value="%(OddEndsTestingAsmInfo.Version)" /> which is supposed to update an empty version node in a NuGet specification file with the assembly version. My .nuspec file looks like this: <?xml version="1.0" encoding="utf-8"?> <package xmlns:xsd="http://www.w3.org

XmlUpdate task not updating my XML file

陌路散爱 提交于 2021-02-19 03:19:49
问题 I have the following task in an MSBuild script: <XmlUpdate Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" XmlFileName="$(PackageDir)\temp\OddEnds.Testing\OddEnds.Testing.nuspec" XPath="/package/metadata/version" Value="%(OddEndsTestingAsmInfo.Version)" /> which is supposed to update an empty version node in a NuGet specification file with the assembly version. My .nuspec file looks like this: <?xml version="1.0" encoding="utf-8"?> <package xmlns:xsd="http://www.w3.org

Visual Studio project not being built when I build Solution from msbuild

你说的曾经没有我的故事 提交于 2021-02-18 22:11:20
问题 I build whole Visual Studio solution using msbuild, it worked fine but there is one project not being built when I build whole solution This is my msbuild script <MSBuild Condition="'$(debug)' ==''" Projects="$(MySolution)" Targets="build" Properties="Configuration=Release"> <Output TaskParameter="TargetOutputs" ItemName="BuildOutput" /> </MSBuild> Something I need to check on this specific project in my Visual Studio solution? 回答1: If this is a new project added to a solution and all other

Visual Studio project not being built when I build Solution from msbuild

空扰寡人 提交于 2021-02-18 22:11:06
问题 I build whole Visual Studio solution using msbuild, it worked fine but there is one project not being built when I build whole solution This is my msbuild script <MSBuild Condition="'$(debug)' ==''" Projects="$(MySolution)" Targets="build" Properties="Configuration=Release"> <Output TaskParameter="TargetOutputs" ItemName="BuildOutput" /> </MSBuild> Something I need to check on this specific project in my Visual Studio solution? 回答1: If this is a new project added to a solution and all other

CVE-2017-0261及利用样本分析

偶尔善良 提交于 2021-02-18 07:38:11
CVE-2017-0261及利用样本分析 注意事项: 1. 本篇文章由 Gcow 安全团队复眼小组的 ERFZE 师傅原创,未经许可禁止转载 2. 本篇文章一共 2313 字, 39 张图,预计用时 20 分钟 3. 文中提及的方法仅供参考学习,若用在实际情况而造成的损失,本团队以及本公众号概不负责 4. 若本篇文章中存在说得有错误或者模糊的环节,希望各位看官可以在后台留言或者评论指出,本小组不胜感激! 0x01 漏洞描述 • 成因:打开Office文档时,FLTLDR.EXE将被用于渲染包含该漏洞的嵌入式EPS文件。该文件是由PostScript语言编写而成,可以被攻击者通过"save-restore"操作利用,其本质为一UAF漏洞。当用户打开包含格式错误的图形图像的文件时,或者当用户将格式错误的图形图像插入到 Office 文件时,该漏洞可能会受到利用。 • 影响版本:Microsoft Office 2010 Service Pack 2、Microsoft Office 2013 Service Pack 1、Microsoft Office 2016 • POC:kcufId's Github(https://github.com/kcufId/eps-CVE-2017-0261) 0x02 POC分析 笔者在网上寻找许久,并未找到包含EPSIMP32

MSBuild 4.5 is ignoring project dependencies

ぐ巨炮叔叔 提交于 2021-02-18 05:36:27
问题 I have a VS2010 solution file with over 20 projects in it, and some of the projects have dependencies on other projects from within the solution. I also have multiple build configurations set up for different purposes, but I've trimmed down the projects to be built to just include the bare minimum number of projects. For example, I have three libraries (A, B, and C), a website project, and a website deployment project (VS2010). The website has references to libraries A and B, and B in turn