Error:Project file must include the .NET Framework assembly 'WindowsBase, PresentationCore, PresentationFramework' in the reference list. WebApplication1 RRS feed

  • Question

  • Hello Team,

    While running my project I am getting the error in the visual studio console.

    The below code only I am using.

    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
            <title>PDF Sample Program</title>
            <meta http-equiv="Content-Type" content="text/html">
            <script src="WebViewer/jquery-3.2.1.min.js"></script>
            <script src="WebViewer/lib/WebViewer.min.js"></script>
            <script type="text/javascript">
        $(function () {
            var ViewerElement = document.getElementById("viewer");
            var myWebViwer = new PDFTron.WebViewer({
                type: "html5",
                path: "WebViewer/lib",
                initialDoc: "WebViewer/mydoc.pdf",
                l: "demo:narendra.manam@gmail.com:70b706bd016cb983e1ad9ad07cd28edf819002597035490e5a"
            }, ViewerElement);
            <div id="viewer"></div>

    I am working on PDFTron Example.


    Narendra Manam

    Friday, July 28, 2017 9:49 AM

All replies

  • Hi Naeendra Manam,

    Thanks for posting here.

    According to the error, it seems like you are miss the references "'WindowsBase", "PresentationCore", "PresentationFramework" in your project. So you can try to add those reference by NuGet.


    If you find those packages were all already installed in the NuGet package Manager UI, you should use the command line "Update-package -reinstall" to reinstall those packages.

    Besides, since this forum is discuss the MSBuild, as your issue is more related to the asp.net, you can ask help from https://forums.asp.net/

    Thanks for your understanding and cooperation.

    MSDN Community Support Please remember to click &quot;Mark as Answer&quot; the responses that resolved your issue, and to click &quot;Unmark as Answer&quot; if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, July 31, 2017 9:19 AM