I use the Visual Studio publish function pointing to a share, the project is F# and I found the issue, that as AndrĂ¡s indicated is that the Scripts directory is not published, only . and .\bin. I am using Visual studio Community 2017 Preview Version 15.4.0 Preview 1.0, in W10. I reinstalled the latest release of the vsix just today so I have the latest project templates. I tried several times but, differently from Andras, the Scripts are not copied.

By on 9/4/2017 2:35 AM ()

Andras, the project file has this section:

1
2
3
4
5
6
  <Target Name="IncludeContent" BeforeTargets="Compile">
    <ItemGroup>
      <Content Include="Content/**/*.*" />
      <Content Include="Scripts/**/*.*" />
    </ItemGroup>
  </Target>

Doesn't this mean that the Content and Scripts folders are copied but only those files that exist before compilation (i.e. no files)?

By on 9/4/2017 4:52 AM ()

Publishing is done after compilation. I have tested with wiping Content/Scripts and the deploy target too, and Publish still worked correctly.

This might also be an issue in VS2017 Preview version too, working for me on Version 15.3.3 (Latest release)

By on 9/4/2017 5:23 AM ()

I tried the Release Configuration, and it works, but it fails for the Debug. Is this expected?

By on 9/4/2017 2:30 PM ()

No, Debug should work too. But this is useful information to find where the problem is, thanks!

By on 9/4/2017 10:34 PM ()

Do you see any 404 errors on scripts in the Network tab of your F12 tools? As the inner content of the sample page is rendered with JavaScript, this might be the cause.

I have just tested that running Publish from VS2017 Community deploys the Scripts folder properly. Works correctly too, although VS says "publish failed", I will investigate that. I have tested it so far on IIS 10, will try with older versions too.

By on 9/4/2017 2:06 AM ()

It should indeed work seamlessly. Let's investigate.

By "I deploy the project", do you mean that you use Visual Studio's Publish functionality, or just that you point an IIS website to the project's folder? Both should work of course, this is just to know where to look. Also, is it a C# or F# client-server project?

By on 9/4/2017 1:45 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper