用户控件在开发过程中的位置和更新 [英] User Control location and update during development
问题描述
我在目录中有一个用户控件,例如名称Test1.
I have an user control, with name Test1 for example, in the directory:
C:\ Models ... \ CSharpModel \ web \ Test1
C:\Models...\CSharpModel\web\Test1
即使我在该目录中将其删除,用户控件仍然可以在浏览器的Web面板中使用.为什么会这样?如何确定用户控件已删除?
Even when I delete it in that directory, the user control still works in the webpanel on the browser. Why this happens? How can I make sure the user control is deleted?
如何确定用户控件已更新?因为即使更改版本,也要执行安装命令,重新启动浏览器并确保正确刷新浏览器(或在其他浏览器中对其进行测试),有时我仍无法获得在javascript代码中所做的持久更改
And how can I make sure the user control is updated? Because even when I change the version, do the install command, restart the browser and make sure the browser is refreshed properly (or test it in another browser), sometimes I don't get the lasted changes that I have made in the javascript code.
推荐答案
-
必须增加位于YourUserControl.control中的版本号
<Version>X.X</Version>
.这就是GeneXus知道UC是否已更新的方式.
Must increase the version number
<Version>X.X</Version>
located in YourUserControl.control. This is how GeneXus knows if the UC was updated.
关闭GeneXus.
Close GeneXus.
在更新用户控件中的任何文件后,您必须将这些文件复制到GeneXus安装文件夹/用户控件中.
After updating any file within a usercontrol, you have to copy those files to your GeneXus Installation Folder/UserControls.
运行Genexus.exe/install
Run Genexus.exe /install
运行GeneXus
全部构建(GeneXus将在您的UC中检测版本更改并自动复制UC文件)
Build All (GeneXus will detect version change in your UC and automatically copy UC files)
这篇关于用户控件在开发过程中的位置和更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!