diff --git a/README.md b/README.md index 45cc1a35..2870cfc5 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ PM> Install-Package CefSharp.WinForms -Version 67.0.0 The `Debug` configuration uses a separate data folder by default (`%LOCALAPPDATA%\TweetDuckDebug`) to avoid affecting an existing installation of TweetDuck. You can modify this by opening **TweetDuck Properties** in Visual Studio, clicking the **Debug** tab, and changing the **Command line arguments** field. -While debugging, opening the main menu and clicking **Reload browser** automatically rebuilds all resources in `Resources/Scripts` and `Resources/Plugins`. This allows editing HTML/CSS/JS files without restarting the program, but it will cause a short delay between browser reloads. An F# compiler must be present when building the project to enable this feature: `C:\Program Files (x86)\Microsoft SDKs\F#\10.1\Framework\v4.0\fsc.exe` +While debugging, opening the main menu and clicking **Reload browser** automatically rebuilds all resources in `Resources/Scripts` and `Resources/Plugins`. This allows editing HTML/CSS/JS files without restarting the program, but it will cause a short delay between browser reloads. ### Release diff --git a/TweetDuck.csproj b/TweetDuck.csproj index 7e45f7fc..62d27328 100644 --- a/TweetDuck.csproj +++ b/TweetDuck.csproj @@ -384,7 +384,7 @@ IF EXIST "$(ProjectDir)bld\post_build.exe" ( </PostBuildEvent> </PropertyGroup> <Target Name="BeforeBuild" Condition="(!$([System.IO.File]::Exists("$(ProjectDir)\bld\post_build.exe")) OR ($([System.IO.File]::GetLastWriteTime("$(ProjectDir)\Resources\PostBuild.fsx").Ticks) > $([System.IO.File]::GetLastWriteTime("$(ProjectDir)\bld\post_build.exe").Ticks)))"> - <Exec Command=""$(ProjectDir)bld\POST BUILD.bat"" WorkingDirectory="$(ProjectDir)bld\" IgnoreExitCode="true" /> + <Exec Command=""$(ProjectDir)bld\POST BUILD.bat" "$(DevEnvDir)CommonExtensions\Microsoft\FSharp\fsc.exe"" WorkingDirectory="$(ProjectDir)bld\" IgnoreExitCode="true" /> </Target> <Target Name="AfterBuild" Condition="$(ConfigurationName) == Release"> <Exec Command="del "$(TargetDir)*.pdb"" /> diff --git a/bld/POST BUILD.bat b/bld/POST BUILD.bat index ef6c7c4b..16089dfb 100644 --- a/bld/POST BUILD.bat +++ b/bld/POST BUILD.bat @@ -1,16 +1,12 @@ @ECHO OFF -DEL "post_build.exe" - -SET fsc="%PROGRAMFILES(x86)%\Microsoft SDKs\F#\10.1\Framework\v4.0\fsc.exe" - -IF NOT EXIST %fsc% ( - SET fsc="%PROGRAMFILES%\Microsoft SDKs\F#\10.1\Framework\v4.0\fsc.exe" +IF EXIST "post_build.exe" ( + DEL "post_build.exe" ) -IF NOT EXIST %fsc% ( +IF NOT EXIST %1 ( ECHO fsc.exe not found EXIT 1 ) -%fsc% --standalone --deterministic --preferreduilang:en-US --platform:x86 --target:exe --out:post_build.exe "%~dp0..\Resources\PostBuild.fsx" +%1 --standalone --deterministic --preferreduilang:en-US --platform:x86 --target:exe --out:post_build.exe "%~dp0..\Resources\PostBuild.fsx"