question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Open-XML-SDK.sln fails to build with dotnet after adding .NET 3.5 support

See original GitHub issue

Warning: Newbie Observation I just want to use the PowerShell part of Open-XML-PowerTools. I am 5 hours into trying to get this code to build on a fresh install of VS Code and .Net Core. The brief build instructions are not enough to do the job. I’d be happy to write them up, but that would require success. If someone can assist me in getting the code to compile I’ll repay the favor by writing it all into an updated “how to” for this project.

Right now I am stuck with:

dotnet restore .\Open-XML-SDK.sln
dotnet build .\Open-XML-SDK.sln /p:Configuration=Debug

I get the error: (I have tried to use TargetFramework=net46 but that fails with the same error.)

C:\Program Files\dotnet\sdk\1.0.3\Microsoft.Common.CurrentVersion.targets(1111,5): error MSB3644: The reference assemblies for framework “.NETFramework,Version=v3.5” were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [D:.…\WindowsPowerShell\Modules\Open-XML-SDK\DocumentFormat.OpenXml\DocumentFormat.OpenXml.csproj]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
MatthewMcDcommented, May 9, 2017

Taylor, I really appreciate the assistance. But still fail to see how to connect the dots. I just reviewed the video on Open XML Tools for “Gitting, Building, and Installing Open-Xml-PowerTools” and found my comment from 3 months ago asking why it does not build in VS2013+Update 4 as he said it would.

“If all you want to do is run in PowerShell you need to do the following.” None of this is intuitive and assumes that Git, Slurp, Burp and dotnet, msbuild are all part of the readers every day life. So much of the “documentation” has comments like:

“The following instructions are somewhat outdated at this point.”

followed by three paragraphs of installation instructions that do not work.

I am just offering to document it so it will actually build for a technical ITPro. After all, I use PowerShell and this is a PowerShell extension that appears to offer features to save me time…so far it is neither.

I don’t meant to sound at all ungrateful! I really appreciate this type of community project. I’d just like to help the next person who stumbles in here with zero project history expecting to get the bits working.

0reactions
MatthewMcDcommented, May 15, 2017

Back at it…built a clean environment. Installed VS2017 Community. Cloned both projects into PowerShell\Modules. Built the SDK without error.

Nothing is working, but it does build. https://github.com/OfficeDev/Open-Xml-PowerTools/issues/143

Read more comments on GitHub >

github_iconTop Results From Across the Web

Open-XML-SDK.sln fails to build with dotnet after adding . ...
Warning: Newbie Observation I just want to use the PowerShell part of Open-XML-PowerTools. I am 5 hours into trying to get this code...
Read more >
NET Framework 3.5 installation errors - Windows Client
Verify that the installation source contains a valid and complete set of files. If the problem persists, try to use a different installation ......
Read more >
dotnet cmdlet broken and continually tries to install .NET ...
Everytime I invoke it, no matter the command it attempts to install .NET Framework 3.5, fails, and quits. Example: PS C:\> dotnet --version ......
Read more >
OpenXmlPowerTools.NetStandard 4.6.0
The Open XML PowerTools provides guidance and example code for programming with Open XML Documents (DOCX, XLSX, and PPTX). It is based on,...
Read more >
Compile an application using .net framework 3.5 or lower ...
I've been trying add the net framework 3.5 on my VS 2019 for running an app on recently windows 7 installed PC's.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found