After further testing, I've determined that the TestPage is getting created in the OutputPath folder, but when I hit F5, the OuputPath folder is not used. It seems to be always set to "Bin".
For example, if I set <OutputPath>output</OutputPath>
It does create the test page:
C:\Users\ctaggart\blog\examples100\Example001Silverlight\output\TestPage.html
But when I hit F5, it tries to open:
C:\Users\ctaggart\blog\examples100\Example001Silverlight\Bin\TestPage.html
Any ideas why F5 appears to be ignoring the OutputPath?
What task/target is being executed to view the test page in the browser when I hit F5? If I open up "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.Common.targets", there is a CreateHtmlTestPage target that says: "This target
creates a TestPage.Html file in the output folder. This is used by ViewInBrowser and F5 scenarios". Is ViewInBrowser a target?
It could be set in the "Start Action". (Project -> xxxxx Properties... -> Web -> Start Action -> check on the "Specific Page" -> set the textbox as the TestPage.html).
ctaggart
0 Points
3 Posts
F5 going to wrong URL (Custom F# Silverlight App)
Nov 12, 2010 04:34 PM | LINK
F5 is opening up a slightly wrong URL:
file:///C:/Users/ctaggart/blog/Examples100/Example001Silverlight/Bin/TestPage.html
when it should be:
file:///C:/Users/ctaggart/blog/Examples100/Example001Silverlight/Bin/Debug/TestPage.html
More details and how to get the solution source code is on my blog:
http://blog.ctaggart.com/2010/11/visual-f-100-examples-example-number-1.html
I've been digging through the MSBuild files to see if I set something wrong, but no luck locating the issue yet. Any ideas?
ctaggart
0 Points
3 Posts
Re: F5 going to wrong URL (Custom F# Silverlight App)
Nov 13, 2010 08:49 PM | LINK
After further testing, I've determined that the TestPage is getting created in the OutputPath folder, but when I hit F5, the OuputPath folder is not used. It seems to be always set to "Bin".
For example, if I set <OutputPath>output</OutputPath>
It does create the test page:
C:\Users\ctaggart\blog\examples100\Example001Silverlight\output\TestPage.html
But when I hit F5, it tries to open:
C:\Users\ctaggart\blog\examples100\Example001Silverlight\Bin\TestPage.html
Any ideas why F5 appears to be ignoring the OutputPath?
What task/target is being executed to view the test page in the browser when I hit F5? If I open up "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.Common.targets", there is a CreateHtmlTestPage target that says: "This target creates a TestPage.Html file in the output folder. This is used by ViewInBrowser and F5 scenarios". Is ViewInBrowser a target?
Jerry Weng -...
All-Star
18970 Points
2805 Posts
Microsoft
Re: F5 going to wrong URL (Custom F# Silverlight App)
Nov 16, 2010 02:32 AM | LINK
Hi,
It could be set in the "Start Action". (Project -> xxxxx Properties... -> Web -> Start Action -> check on the "Specific Page" -> set the textbox as the TestPage.html).
http://msdn.microsoft.com/en-us/library/68c8335t.aspx
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework